MCPcopy Create free account
hub / github.com/Qihoo360/poseidon / set

Method set

builder/index/src/main/java/util/IniParser.java:1026–1039  ·  view source on GitHub ↗
(String value)

Source from the content-addressed store, hash-verified

1024 }
1025
1026 public void set(String value) {
1027 if (value == null) {
1028 this.value = value;
1029 } else {
1030 StringTokenizer st = new StringTokenizer(value.trim(),
1031 ILLEGAL_VALUE_CHARS);
1032 StringBuffer sb = new StringBuffer();
1033 // XXX this might not be particularly efficient
1034 while (st.hasMoreTokens()) {
1035 sb.append(st.nextToken());
1036 }
1037 this.value = sb.toString();
1038 }
1039 }
1040
1041 public String toString() {
1042 return this.format.format(this.name, this.value, this.separator);

Callers 1

OptionMethod · 0.95

Calls 1

toStringMethod · 0.65

Tested by

no test coverage detected