Java 7 compliance
This commit is contained in:
parent
d73fbb419a
commit
af3f02eb4b
3 changed files with 5 additions and 3 deletions
BIN
Zutil.jar
BIN
Zutil.jar
Binary file not shown.
|
|
@ -1,5 +1,6 @@
|
|||
package zutil.db.bean;
|
||||
|
||||
import zutil.ClassUtil;
|
||||
import zutil.log.LogUtil;
|
||||
|
||||
import java.lang.reflect.Field;
|
||||
|
|
@ -79,8 +80,9 @@ class DBBeanConfig{
|
|||
|
||||
protected static String getFieldName(Field field){
|
||||
String name = null;
|
||||
if(field.getDeclaredAnnotation(DBBean.DBColumn.class) != null)
|
||||
name = field.getDeclaredAnnotation(DBBean.DBColumn.class).value();
|
||||
DBBean.DBColumn colAnnotation = field.getAnnotation(DBBean.DBColumn.class);
|
||||
if(colAnnotation != null)
|
||||
name = colAnnotation.value();
|
||||
else
|
||||
name = field.getName();
|
||||
return name;
|
||||
|
|
|
|||
2
src/zutil/log/StreamLogger.java
Normal file → Executable file
2
src/zutil/log/StreamLogger.java
Normal file → Executable file
|
|
@ -33,7 +33,7 @@ public class StreamLogger {
|
|||
if(n < 0 || n == DELIMETER)
|
||||
flushLog();
|
||||
else
|
||||
buffer.append(n);
|
||||
buffer.append((char)n);
|
||||
if(buffer.length() > MAX_BUFFER_SIZE)
|
||||
flushLog();
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue