• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 // Protocol Buffers - Google's data interchange format
2 // Copyright 2008 Google Inc.  All rights reserved.
3 //
4 // Use of this source code is governed by a BSD-style
5 // license that can be found in the LICENSE file or at
6 // https://developers.google.com/open-source/licenses/bsd
7 
8 package com.google.protobuf;
9 
10 @CheckReturnValue
11 final class NewInstanceSchemaLite implements NewInstanceSchema {
12   @Override
newInstance(Object defaultInstance)13   public Object newInstance(Object defaultInstance) {
14     // TODO decide if we're keeping support for Full in schema classes and handle this
15     // better.
16     return ((GeneratedMessageLite<?, ?>) defaultInstance).newMutableInstance();
17   }
18 }
19