cassandra-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dbros...@apache.org
Subject cassandra git commit: use platform agnostic new line chars (%n)
Date Fri, 08 Jul 2016 03:24:23 GMT
Repository: cassandra
Updated Branches:
  refs/heads/trunk 27d6d19a9 -> d019136ee


use platform agnostic new line chars (%n)


Project: http://git-wip-us.apache.org/repos/asf/cassandra/repo
Commit: http://git-wip-us.apache.org/repos/asf/cassandra/commit/d019136e
Tree: http://git-wip-us.apache.org/repos/asf/cassandra/tree/d019136e
Diff: http://git-wip-us.apache.org/repos/asf/cassandra/diff/d019136e

Branch: refs/heads/trunk
Commit: d019136ee4830a4022354d473a6290d827793057
Parents: 27d6d19
Author: Dave Brosius <dbrosius@mebigfatguy.com>
Authored: Thu Jul 7 23:24:00 2016 -0400
Committer: Dave Brosius <dbrosius@mebigfatguy.com>
Committed: Thu Jul 7 23:24:00 2016 -0400

----------------------------------------------------------------------
 .../dht/tokenallocator/ReplicationAwareTokenAllocator.java       | 2 +-
 src/java/org/apache/cassandra/tools/SSTableMetadataViewer.java   | 4 ++--
 tools/stress/src/org/apache/cassandra/stress/Stress.java         | 2 +-
 3 files changed, 4 insertions(+), 4 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cassandra/blob/d019136e/src/java/org/apache/cassandra/dht/tokenallocator/ReplicationAwareTokenAllocator.java
----------------------------------------------------------------------
diff --git a/src/java/org/apache/cassandra/dht/tokenallocator/ReplicationAwareTokenAllocator.java
b/src/java/org/apache/cassandra/dht/tokenallocator/ReplicationAwareTokenAllocator.java
index 054a90e..a60be94 100644
--- a/src/java/org/apache/cassandra/dht/tokenallocator/ReplicationAwareTokenAllocator.java
+++ b/src/java/org/apache/cassandra/dht/tokenallocator/ReplicationAwareTokenAllocator.java
@@ -772,7 +772,7 @@ class ReplicationAwareTokenAllocator<Unit> implements TokenAllocator<Unit>
         BaseTokenInfo<?, ?> token = tokens;
         do
         {
-            System.out.format("%s%s: rs %s rt %s size %.2e\n", lead, token, token.replicationStart,
token.replicationThreshold, token.replicatedOwnership);
+            System.out.format("%s%s: rs %s rt %s size %.2e%n", lead, token, token.replicationStart,
token.replicationThreshold, token.replicatedOwnership);
             token = token.next;
         } while (token != null && token != tokens);
     }

http://git-wip-us.apache.org/repos/asf/cassandra/blob/d019136e/src/java/org/apache/cassandra/tools/SSTableMetadataViewer.java
----------------------------------------------------------------------
diff --git a/src/java/org/apache/cassandra/tools/SSTableMetadataViewer.java b/src/java/org/apache/cassandra/tools/SSTableMetadataViewer.java
index 3c8ba64..b455ad7 100644
--- a/src/java/org/apache/cassandra/tools/SSTableMetadataViewer.java
+++ b/src/java/org/apache/cassandra/tools/SSTableMetadataViewer.java
@@ -112,8 +112,8 @@ public class SSTableMetadataViewer
                     out.printf("Estimated droppable tombstones: %s%n", stats.getEstimatedDroppableTombstoneRatio((int)
(System.currentTimeMillis() / 1000)));
                     out.printf("SSTable Level: %d%n", stats.sstableLevel);
                     out.printf("Repaired at: %d%n", stats.repairedAt);
-                    out.printf("Minimum replay position: %s\n", stats.commitLogLowerBound);
-                    out.printf("Maximum replay position: %s\n", stats.commitLogUpperBound);
+                    out.printf("Minimum replay position: %s%n", stats.commitLogLowerBound);
+                    out.printf("Maximum replay position: %s%n", stats.commitLogUpperBound);
                     out.printf("totalColumnsSet: %s%n", stats.totalColumnsSet);
                     out.printf("totalRows: %s%n", stats.totalRows);
                     out.println("Estimated tombstone drop times:");

http://git-wip-us.apache.org/repos/asf/cassandra/blob/d019136e/tools/stress/src/org/apache/cassandra/stress/Stress.java
----------------------------------------------------------------------
diff --git a/tools/stress/src/org/apache/cassandra/stress/Stress.java b/tools/stress/src/org/apache/cassandra/stress/Stress.java
index 874f515..daa7303 100644
--- a/tools/stress/src/org/apache/cassandra/stress/Stress.java
+++ b/tools/stress/src/org/apache/cassandra/stress/Stress.java
@@ -80,7 +80,7 @@ public final class Stress
             }
             catch (IllegalArgumentException e)
             {
-                System.out.printf("%s\n", e.getMessage());
+                System.out.printf("%s%n", e.getMessage());
                 printHelpMessage();
                 return 1;
             }


Mime
View raw message