Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,7 @@ public static String readFileContent(InputStream in) throws IOException {
* String 영으로 파일의 내용을 읽는다.
*/
public static String readFile(File file, String encoding) throws IOException {
StringBuffer sb = new StringBuffer();
StringBuilder sb = new StringBuilder();
List<String> lines = readTextLines(file, encoding);

for (Iterator<String> it = lines.iterator(); ; ) {
Expand Down Expand Up @@ -441,8 +441,8 @@ public List<?> ls(final String[] cmd) throws FileSystemException {
/**
* 지정한 위치의 하위 디렉토리 목록을 가져온다.
*/
private StringBuffer listChildren(final FileObject dir, final boolean recursive, final String prefix) throws FileSystemException {
StringBuffer line = new StringBuffer();
private StringBuilder listChildren(final FileObject dir, final boolean recursive, final String prefix) throws FileSystemException {
StringBuilder line = new StringBuilder();
final FileObject[] children = dir.getChildren();

for (final FileObject child : children) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ public static String fillString(String originalStr, char ch, int cipers) {
}

int difference = cipers - originalStrLength;
StringBuffer strBuf = new StringBuffer();
StringBuilder strBuf = new StringBuilder();
for (int i = 0; i < difference; i++) {
strBuf.append(ch);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -903,7 +903,7 @@ public static String reverse(String str) {
if (str == null) {
return null;
}
return new StringBuffer(str).reverse().toString();
return new StringBuilder(str).reverse().toString();
}

/**
Expand Down