mirror of
https://github.com/github/codeql.git
synced 2025-12-18 18:10:39 +01:00
37 lines
683 B
Java
37 lines
683 B
Java
package p;
|
|
|
|
public final class InnerHolder {
|
|
|
|
private class Context {
|
|
private String value;
|
|
|
|
Context(String value) {
|
|
this.value = value;
|
|
}
|
|
|
|
public String getValue() {
|
|
return value;
|
|
}
|
|
}
|
|
|
|
private Context context = null;
|
|
|
|
private StringBuilder sb = new StringBuilder();
|
|
|
|
public void setContext(String value) {
|
|
context = new Context(value);
|
|
}
|
|
|
|
public void explicitSetContext(String value) {
|
|
this.context = new Context(value);
|
|
}
|
|
|
|
public void append(String value) {
|
|
sb.append(value);
|
|
}
|
|
|
|
public String getValue() {
|
|
return context.getValue();
|
|
}
|
|
|
|
} |