You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tamaya.apache.org by po...@apache.org on 2017/10/09 20:05:00 UTC
incubator-tamaya-sandbox git commit: TAMAYA-316: Fix typos in Javadoc
Repository: incubator-tamaya-sandbox
Updated Branches:
refs/heads/master bc4a6ad79 -> cd8fcecd3
TAMAYA-316: Fix typos in Javadoc
* Use builder's append instead of + to concat.
Project: http://git-wip-us.apache.org/repos/asf/incubator-tamaya-sandbox/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-tamaya-sandbox/commit/cd8fcecd
Tree: http://git-wip-us.apache.org/repos/asf/incubator-tamaya-sandbox/tree/cd8fcecd
Diff: http://git-wip-us.apache.org/repos/asf/incubator-tamaya-sandbox/diff/cd8fcecd
Branch: refs/heads/master
Commit: cd8fcecd31de75ec7cff0236011bba01736c4cd5
Parents: bc4a6ad
Author: Phil Ottlinger <po...@apache.org>
Authored: Mon Oct 9 22:04:36 2017 +0200
Committer: Phil Ottlinger <po...@apache.org>
Committed: Mon Oct 9 22:04:36 2017 +0200
----------------------------------------------------------------------
.../src/main/java/org/apache/tamaya/osgi/ConfigHistory.java | 2 +-
.../main/java/org/apache/tamaya/osgi/TamayaConfigPlugin.java | 2 +-
.../java/org/apache/tamaya/osgi/commands/BackupCommands.java | 2 +-
.../java/org/apache/tamaya/osgi/commands/ConfigCommands.java | 6 +++---
.../java/org/apache/tamaya/osgi/commands/HistoryCommands.java | 2 +-
5 files changed, 7 insertions(+), 7 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/incubator-tamaya-sandbox/blob/cd8fcecd/osgi/common/src/main/java/org/apache/tamaya/osgi/ConfigHistory.java
----------------------------------------------------------------------
diff --git a/osgi/common/src/main/java/org/apache/tamaya/osgi/ConfigHistory.java b/osgi/common/src/main/java/org/apache/tamaya/osgi/ConfigHistory.java
index 513c54c..cdb915c 100644
--- a/osgi/common/src/main/java/org/apache/tamaya/osgi/ConfigHistory.java
+++ b/osgi/common/src/main/java/org/apache/tamaya/osgi/ConfigHistory.java
@@ -146,7 +146,7 @@ public final class ConfigHistory implements Serializable{
}
/**
- * Ckears the history for a PID.
+ * Clears the history for a PID.
* @param pid the pid, null clears the full history.
*/
public static void clearHistory(String pid){
http://git-wip-us.apache.org/repos/asf/incubator-tamaya-sandbox/blob/cd8fcecd/osgi/common/src/main/java/org/apache/tamaya/osgi/TamayaConfigPlugin.java
----------------------------------------------------------------------
diff --git a/osgi/common/src/main/java/org/apache/tamaya/osgi/TamayaConfigPlugin.java b/osgi/common/src/main/java/org/apache/tamaya/osgi/TamayaConfigPlugin.java
index ebafa3c..50c3860 100644
--- a/osgi/common/src/main/java/org/apache/tamaya/osgi/TamayaConfigPlugin.java
+++ b/osgi/common/src/main/java/org/apache/tamaya/osgi/TamayaConfigPlugin.java
@@ -62,7 +62,7 @@ public class TamayaConfigPlugin implements BundleListener, ServiceListener{
configureService(event);
break;
case ServiceEvent.UNREGISTERING:
- // unconfigure...? Corrently nothing here.
+ // unconfigure...? Currently nothing here.
break;
}
}
http://git-wip-us.apache.org/repos/asf/incubator-tamaya-sandbox/blob/cd8fcecd/osgi/common/src/main/java/org/apache/tamaya/osgi/commands/BackupCommands.java
----------------------------------------------------------------------
diff --git a/osgi/common/src/main/java/org/apache/tamaya/osgi/commands/BackupCommands.java b/osgi/common/src/main/java/org/apache/tamaya/osgi/commands/BackupCommands.java
index 6487fe1..13c811b 100644
--- a/osgi/common/src/main/java/org/apache/tamaya/osgi/commands/BackupCommands.java
+++ b/osgi/common/src/main/java/org/apache/tamaya/osgi/commands/BackupCommands.java
@@ -78,7 +78,7 @@ public final class BackupCommands {
b.append(current).append(" -> no backup found.\n");
}
}catch(Exception e){
- b.append(current).append(" -> failed: " + e).append('\n');
+ b.append(current).append(" -> failed: ").append(e).append('\n');
}
}
return b.toString();
http://git-wip-us.apache.org/repos/asf/incubator-tamaya-sandbox/blob/cd8fcecd/osgi/common/src/main/java/org/apache/tamaya/osgi/commands/ConfigCommands.java
----------------------------------------------------------------------
diff --git a/osgi/common/src/main/java/org/apache/tamaya/osgi/commands/ConfigCommands.java b/osgi/common/src/main/java/org/apache/tamaya/osgi/commands/ConfigCommands.java
index ece0128..50e8666 100644
--- a/osgi/common/src/main/java/org/apache/tamaya/osgi/commands/ConfigCommands.java
+++ b/osgi/common/src/main/java/org/apache/tamaya/osgi/commands/ConfigCommands.java
@@ -97,7 +97,7 @@ public final class ConfigCommands {
return "No Config present for PID: " + pid;
}
StringBuilder b = new StringBuilder();
- b.append("OSGI Configuration for PID: " + pid + '\n');
+ b.append("OSGI Configuration for PID: ").append(pid).append('\n');
b.append("-----------------------------------------------------\n");
TreeMap<String,String> result = new TreeMap<>();
Enumeration<String> keys = config.keys();
@@ -150,9 +150,9 @@ public final class ConfigCommands {
PropertyValue val = ps.get(key);
if(val!=null){
if(extended) {
- pw.println(StringUtil.format(propertysource, 25) + StringUtil.format(val.toString(), 55));
+ pw.println(StringUtil.format("", 25) + StringUtil.format(val.toString(), 55));
}else{
- pw.println(StringUtil.format(propertysource, 25) + StringUtil.format(val.getValue(), 55));
+ pw.println(StringUtil.format("", 25) + StringUtil.format(val.getValue(), 55));
}
}
}
http://git-wip-us.apache.org/repos/asf/incubator-tamaya-sandbox/blob/cd8fcecd/osgi/common/src/main/java/org/apache/tamaya/osgi/commands/HistoryCommands.java
----------------------------------------------------------------------
diff --git a/osgi/common/src/main/java/org/apache/tamaya/osgi/commands/HistoryCommands.java b/osgi/common/src/main/java/org/apache/tamaya/osgi/commands/HistoryCommands.java
index 7a372fe..03fc304 100644
--- a/osgi/common/src/main/java/org/apache/tamaya/osgi/commands/HistoryCommands.java
+++ b/osgi/common/src/main/java/org/apache/tamaya/osgi/commands/HistoryCommands.java
@@ -49,7 +49,7 @@ public final class HistoryCommands{
PrintWriter pw = new PrintWriter(sw);
List<ConfigHistory> history = ConfigHistory.history(pid);
history = filterTypes(history, events);
- pw.print(StringUtil.format("Typ", 10));
+ pw.print(StringUtil.format("Type", 10));
pw.print(StringUtil.format("PID", 30));
pw.print(StringUtil.format("Key", 30));
pw.print(StringUtil.format("Value", 40));