Skip to content
This repository has been archived by the owner on Jan 14, 2023. It is now read-only.

Commit

Permalink
Update PrimitiveFieldType.java
Browse files Browse the repository at this point in the history
Clean code
  • Loading branch information
Theosakamg committed Feb 28, 2014
1 parent 45bfaac commit f39e6fd
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,8 @@
*/
public enum PrimitiveFieldType implements FieldType {

private static final Charset DEFAULT_CHARSET = Charset.forName("UTF-8");

BOOL {
@SuppressWarnings("unchecked")
@Override
Expand Down Expand Up @@ -680,7 +682,6 @@ public String getJavaTypeName() {
};

private static final ImmutableSet<String> TYPE_NAMES;
private static final Charset DEFAULT_CHARSET = Charset.forName("UTF-8");

static {
ImmutableSet.Builder<String> builder = ImmutableSet.<String>builder();
Expand Down

1 comment on commit f39e6fd

@mh0rst
Copy link

@mh0rst mh0rst commented on f39e6fd Mar 14, 2014

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Does this compile on your machine?
The build fails on my machine (using latest Oracle JDK 7u51) because it is not allowed to put any fields or methods before the enum type's fields.

Please sign in to comment.