private static String escapeValue(final String x) {
boolean inquote = false;
int lineStart = 0;
- final StringBuffer r = new StringBuffer(x.length());
+ final StringBuilder r = new StringBuilder(x.length());
for (int k = 0; k < x.length(); k++) {
final char c = x.charAt(k);
switch (c) {
private static String readKeyName(final StringReader in)
throws ConfigInvalidException {
- final StringBuffer name = new StringBuffer();
+ final StringBuilder name = new StringBuilder();
for (;;) {
int c = in.read();
if (c < 0)
private static String readValue(final StringReader in, boolean quote,
final int eol) throws ConfigInvalidException {
- final StringBuffer value = new StringBuffer();
+ final StringBuilder value = new StringBuilder();
boolean space = false;
for (;;) {
int c = in.read();
}
public String toString() {
- final StringBuffer r = new StringBuffer();
+ final StringBuilder r = new StringBuilder();
r.append(ObjectId.toString(getId()));
r.append(' ');
r.append(isExecutable() ? 'X' : 'F');
@Override
public String toString() {
- final StringBuffer r = new StringBuffer();
+ final StringBuilder r = new StringBuilder();
r.append(ObjectId.toString(getId()));
r.append(" G ");
r.append(getFullName());
* @return this person's declared time zone; null if time zone is unknown.
*/
public TimeZone getTimeZone() {
- StringBuffer tzId = new StringBuffer(8);
+ StringBuilder tzId = new StringBuilder(8);
tzId.append("GMT");
appendTimezone(tzId);
return TimeZone.getTimeZone(tzId.toString());
* @return a string in the git author format
*/
public String toExternalString() {
- final StringBuffer r = new StringBuffer();
+ final StringBuilder r = new StringBuilder();
r.append(getName());
r.append(" <");
r.append(getEmailAddress());
return r.toString();
}
- private void appendTimezone(final StringBuffer r) {
+ private void appendTimezone(final StringBuilder r) {
int offset = tzOffset;
final char sign;
final int offsetHours;
}
public String toString() {
- final StringBuffer r = new StringBuffer();
+ final StringBuilder r = new StringBuilder();
final SimpleDateFormat dtfmt;
dtfmt = new SimpleDateFormat("EEE MMM d HH:mm:ss yyyy Z", Locale.US);
dtfmt.setTimeZone(getTimeZone());
}
public String toString() {
- final StringBuffer r = new StringBuffer();
+ final StringBuilder r = new StringBuilder();
r.append(ObjectId.toString(getId()));
r.append(" S ");
r.append(getFullName());
throw new CorruptObjectException(tagId, "no tagger/bad header");
// Message should start with an empty line, but
- StringBuffer tempMessage = new StringBuffer();
+ StringBuilder tempMessage = new StringBuilder();
char[] readBuf = new char[2048];
int readLen;
while ((readLen = br.read(readBuf)) > 0) {
}
public String toString() {
- final StringBuffer r = new StringBuffer();
+ final StringBuilder r = new StringBuilder();
r.append(ObjectId.toString(getId()));
r.append(" T ");
r.append(getFullName());
* @return repository relative name of this entry
*/
public String getFullName() {
- final StringBuffer r = new StringBuffer();
+ final StringBuilder r = new StringBuilder();
appendFullName(r);
return r.toString();
}
*/
public abstract FileMode getMode();
- private void appendFullName(final StringBuffer r) {
+ private void appendFullName(final StringBuilder r) {
final TreeEntry p = getParent();
final String n = getName();
if (p != null) {
@Override
public String toString() {
- final StringBuffer r = new StringBuffer();
+ final StringBuilder r = new StringBuilder();
r.append("(");
for (int i = 0; i < subfilters.length; i++) {
if (i > 0)
@Override
public String toString() {
- final StringBuffer r = new StringBuffer();
+ final StringBuilder r = new StringBuilder();
r.append("(");
for (int i = 0; i < subfilters.length; i++) {
if (i > 0)
@Override
public String toString() {
- final StringBuffer r = new StringBuffer();
+ final StringBuilder r = new StringBuilder();
r.append("(");
for (int i = 0; i < subfilters.length; i++) {
if (i > 0)
@Override
public String toString() {
- final StringBuffer r = new StringBuffer();
+ final StringBuilder r = new StringBuilder();
r.append("(");
for (int i = 0; i < subfilters.length; i++) {
if (i > 0)
}
public String toString() {
- final StringBuffer r = new StringBuffer();
+ final StringBuilder r = new StringBuilder();
r.append("FAST(");
for (int i = 0; i < paths.length; i++) {
if (i > 0)