mirror of
https://github.com/querydsl/querydsl.git
synced 2026-07-03 21:07:49 +08:00
added constant for INDENT size
This commit is contained in:
parent
45abdbfae0
commit
026b82cd25
@ -32,6 +32,8 @@ import org.apache.commons.lang.StringUtils;
|
||||
*
|
||||
*/
|
||||
public final class JavaWriter implements Appendable, CodeWriter{
|
||||
|
||||
private static final int INDENT_SPACES = 4;
|
||||
|
||||
private static final String EXTENDS = " extends ";
|
||||
|
||||
@ -260,8 +262,8 @@ public final class JavaWriter implements Appendable, CodeWriter{
|
||||
}
|
||||
|
||||
private JavaWriter goOut(){
|
||||
if (indent.length() >= 4){
|
||||
indent = indent.substring(0, indent.length() - 4);
|
||||
if (indent.length() >= INDENT_SPACES){
|
||||
indent = indent.substring(0, indent.length() - INDENT_SPACES);
|
||||
}
|
||||
return this;
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user