Commit fa178802 authored by Feng Xiao's avatar Feng Xiao Committed by GitHub

Merge pull request #2602 from GreatFruitOmsk/issue-2428

Method Builder#clone() has been changed to bypass Java 1.6 compiler issue.
parents 920af75d 24908e1b
......@@ -328,8 +328,11 @@ public abstract class AbstractMessage
extends AbstractMessageLite.Builder
implements Message.Builder {
// The compiler produces an error if this is not declared explicitly.
// Method isn't abstract to bypass Java 1.6 compiler issue http://bugs.java.com/view_bug.do?bug_id=6908259
@Override
public abstract BuilderType clone();
public BuilderType clone() {
throw new UnsupportedOperationException("clone() should be implemented in subclasses.");
}
/** TODO(jieluo): Clear it when all subclasses have implemented this method. */
@Override
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment