Skip to content

Commit

Permalink
change the log level to INFO of no order specified reminding information
Browse files Browse the repository at this point in the history
  • Loading branch information
xiemalin committed Jul 6, 2018
1 parent 8d8ae5c commit bb53554
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 6 deletions.
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@

<groupId>com.baidu</groupId>
<artifactId>jprotobuf</artifactId>
<version>1.11.1</version>
<version>1.11.2</version>

<name>Jprotobuf</name>
<description>A very useful utility library for java programmer using google protobuf.</description>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -218,7 +218,7 @@ public boolean isPrimitive() {
|| this == FIXED64 || this == FLOAT
|| this == INT64 || this == SFIXED32
|| this == SFIXED64 || this == SINT32
|| this == SINT64 || this == BOOL || this == FieldType.UINT32 || this == FieldType.UINT64) {
|| this == SINT64 || this == BOOL || this == UINT32 || this == UINT64) {
return true;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@

import java.lang.reflect.Field;
import java.util.ArrayList;
import java.util.Collection;
import java.util.HashMap;
import java.util.HashSet;
import java.util.List;
Expand Down Expand Up @@ -169,7 +168,7 @@ public static List<FieldInfo> processDefaultValue(List<Field> fields, boolean ig
maxOrder++;
fieldInfo.setOrder(maxOrder);

LOGGER.warning("Field '" + fieldInfo.getField().getName() + "' from "
LOGGER.info("Field '" + fieldInfo.getField().getName() + "' from "
+ fieldInfo.getField().getDeclaringClass().getName()
+ " with @Protobuf annotation but not set order or order is 0," + " It will set order value to "
+ maxOrder);
Expand Down
2 changes: 1 addition & 1 deletion v3/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@

<groupId>com.baidu</groupId>
<artifactId>jprotobuf</artifactId>
<version>2.2.2</version>
<version>2.2.3</version>

<name>jprotobuf</name>
<description>A very useful utility library for java programmer using google protobuf.</description>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,7 @@ public static List<FieldInfo> processDefaultValue(List<Field> fields, boolean ig
maxOrder++;
fieldInfo.setOrder(maxOrder);

LOGGER.warning("Field '" + fieldInfo.getField().getName() + "' from "
LOGGER.info("Field '" + fieldInfo.getField().getName() + "' from "
+ fieldInfo.getField().getDeclaringClass().getName()
+ " with @Protobuf annotation but not set order or order is 0," + " It will set order value to "
+ maxOrder);
Expand Down

0 comments on commit bb53554

Please sign in to comment.