Skip to content

Commit

Permalink
(feat) use 2.0.1 formatter for JDK7
Browse files Browse the repository at this point in the history
  • Loading branch information
killme2008 committed Apr 16, 2018
1 parent d660755 commit a0c8bfa
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 7 deletions.
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@
<plugin>
<groupId>net.revelc.code.formatter</groupId>
<artifactId>formatter-maven-plugin</artifactId>
<version>2.7.2</version>
<version>2.0.1</version>
<configuration>
<configFile>${project.basedir}/eclipse-java-google-style.xml</configFile>
<lineEnding>LF</lineEnding>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -51,9 +51,8 @@ public synchronized void onUpdate(ClusterConfigration config) {
removeConfigAddrs();
}

List<CacheNode> oldList =
this.currentClusterConfiguration != null ? this.currentClusterConfiguration.getNodeList()
: Collections.EMPTY_LIST;
List<CacheNode> oldList = this.currentClusterConfiguration != null
? this.currentClusterConfiguration.getNodeList() : Collections.EMPTY_LIST;
List<CacheNode> newList = config.getNodeList();

List<CacheNode> addNodes = new ArrayList<CacheNode>();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -296,8 +296,7 @@ public final void setReturnValues(Map<String, CachedData> returnValues) {
public void encode() {
byte[] cmdBytes =
this.commandType == CommandType.GET_ONE || this.commandType == CommandType.GET_MANY
? Constants.GET
: Constants.GETS;
? Constants.GET : Constants.GETS;
this.ioBuffer =
IoBuffer.allocate(cmdBytes.length + Constants.CRLF.length + 1 + this.keyBytes.length);
ByteUtils.setArguments(this.ioBuffer, cmdBytes, this.keyBytes);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ public void testLargeObject() throws Exception {
// bigger than
// memcached
// daemon
// max value size.
// max value size.
transcoder.setCompressionThreshold(transcoder.getMaxSize()); // bumping
// up
// compression
Expand Down

0 comments on commit a0c8bfa

Please sign in to comment.