aboutsummaryrefslogtreecommitdiff
path: root/src/main/java
diff options
context:
space:
mode:
authorferbas <ferbas@7b5415b0-85f9-ee4d-85bd-d5d0c3b42d1c>2009-11-02 09:22:35 +0000
committerferbas <ferbas@7b5415b0-85f9-ee4d-85bd-d5d0c3b42d1c>2009-11-02 09:22:35 +0000
commit117025dc200937bdaf4894cb133b41b7f03ae5ab (patch)
tree201c53adc337a099795daa27ae7ca82595a88bb7 /src/main/java
parentf7fcf33ac95f498238e5e79059e2aaf05f659fd6 (diff)
downloadpdf-as-3-117025dc200937bdaf4894cb133b41b7f03ae5ab.tar.gz
pdf-as-3-117025dc200937bdaf4894cb133b41b7f03ae5ab.tar.bz2
pdf-as-3-117025dc200937bdaf4894cb133b41b7f03ae5ab.zip
stringbuilder -> stringbuffer
git-svn-id: https://joinup.ec.europa.eu/svn/pdf-as/trunk@381 7b5415b0-85f9-ee4d-85bd-d5d0c3b42d1c
Diffstat (limited to 'src/main/java')
-rw-r--r--src/main/java/at/knowcenter/wag/egov/egiz/sig/sigid/DetachedIdFormatter.java2
-rw-r--r--src/main/java/at/knowcenter/wag/egov/egiz/sig/sigid/DetachedLocRefMOAIdFormatter.java9
-rw-r--r--src/main/java/at/knowcenter/wag/egov/egiz/sig/sigid/DetachedMOCIdFormatter.java2
3 files changed, 8 insertions, 5 deletions
diff --git a/src/main/java/at/knowcenter/wag/egov/egiz/sig/sigid/DetachedIdFormatter.java b/src/main/java/at/knowcenter/wag/egov/egiz/sig/sigid/DetachedIdFormatter.java
index 6d83a9f..c237ef7 100644
--- a/src/main/java/at/knowcenter/wag/egov/egiz/sig/sigid/DetachedIdFormatter.java
+++ b/src/main/java/at/knowcenter/wag/egov/egiz/sig/sigid/DetachedIdFormatter.java
@@ -69,7 +69,7 @@ public class DetachedIdFormatter implements IdFormatter
String idstr = base + "@" + join.substring(1); //$NON-NLS-1$
// dferbas
- StringBuilder final_ids = new StringBuilder(SIG_ID_PREFIX);
+ StringBuffer final_ids = new StringBuffer(SIG_ID_PREFIX);
//String final_ids = SIG_ID_PREFIX + "@" + idstr;
if (algorithmParams != null && algorithmParams.length() > 0) {
final_ids.append(":").append(algorithmParams);
diff --git a/src/main/java/at/knowcenter/wag/egov/egiz/sig/sigid/DetachedLocRefMOAIdFormatter.java b/src/main/java/at/knowcenter/wag/egov/egiz/sig/sigid/DetachedLocRefMOAIdFormatter.java
index 7d66a4e..0329bc5 100644
--- a/src/main/java/at/knowcenter/wag/egov/egiz/sig/sigid/DetachedLocRefMOAIdFormatter.java
+++ b/src/main/java/at/knowcenter/wag/egov/egiz/sig/sigid/DetachedLocRefMOAIdFormatter.java
@@ -3,6 +3,7 @@
*/
package at.knowcenter.wag.egov.egiz.sig.sigid;
+import org.apache.commons.lang.BooleanUtils;
import org.apache.log4j.Logger;
import at.knowcenter.wag.egov.egiz.cfg.ConfigLogger;
@@ -37,9 +38,11 @@ public class DetachedLocRefMOAIdFormatter implements IdFormatter
try
{
- if(SettingsReader.getInstance().getValueFromKey("moa.id.field.visible").equals("false")){
- return null;
- }
+ // dferbas
+// if (!BooleanUtils.toBoolean(SettingsReader.getInstance().getValueFromKey("moa.id.field.visible"))) {
+// return null;
+// }
+
SIG_ID_PREFIX = SettingsReader.getInstance().getValueFromKey(SIG_ID_PROPERTY_KEY);
} catch (SettingsException e)
diff --git a/src/main/java/at/knowcenter/wag/egov/egiz/sig/sigid/DetachedMOCIdFormatter.java b/src/main/java/at/knowcenter/wag/egov/egiz/sig/sigid/DetachedMOCIdFormatter.java
index c15367f..25b9428 100644
--- a/src/main/java/at/knowcenter/wag/egov/egiz/sig/sigid/DetachedMOCIdFormatter.java
+++ b/src/main/java/at/knowcenter/wag/egov/egiz/sig/sigid/DetachedMOCIdFormatter.java
@@ -46,7 +46,7 @@ public class DetachedMOCIdFormatter implements IdFormatter {
prefix = StringUtils.defaultIfEmpty(this.algorithmId, prefix);
// dferbas
- StringBuilder formattedIds = new StringBuilder(prefix);
+ StringBuffer formattedIds = new StringBuffer(prefix);
if (algorithmParams != null && algorithmParams.length() > 0) {
formattedIds.append(":").append(algorithmParams);
}