Skip to content

Commit 11880be

Browse files
committed
Removed useless check
1 parent a23ca8e commit 11880be

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

fj-daogen-base/src/main/java/org/fugerit/java/daogen/base/gen/StructGenerator.java

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ private void generateDaogenBodyStart() {
6060
// obj mapper impl
6161
this.getWriter().println( TAB+AT_OVERRIDE );
6262
this.getWriter().println( TAB+"public Map<String, Class<?>> newTypeMapper() throws SQLException {" );
63-
this.getWriter().println( TAB_2+"Map<String, Class<?>> map = new HashMap<String, Class<?>>();" );
63+
this.getWriter().println( TAB_2+"Map<String, Class<?>> map = new HashMap<>();" );
6464
this.getWriter().println( TAB_2+"map.put( SQL_TYPE_NAME, "+this.getEntityStructName()+".class );" );
6565
this.getWriter().println( TAB_2+"return map;" );
6666
this.getWriter().println( TAB+"}" );
@@ -146,9 +146,7 @@ private void generateDaogenBodyLob( boolean containsBlob, boolean containsClob,
146146
// wrapper helpers
147147
this.getWriter().println( TAB+PUBLIC_STATIC_SPACE_LIT+this.getEntityStructName()+" wrap( "+this.getEntityModelName()+" model, java.sql.Connection conn ) throws SQLException {" );
148148
this.getWriter().println( TAB_2+""+this.getEntityStructName()+" res = wrap( model );" );
149-
this.getWriter().println( TAB_2+"if ( res != null ) {" );
150149
this.getWriter().println( TAB_3+"res.setupLobs( conn );" );
151-
this.getWriter().println( TAB_2+"}" );
152150
this.getWriter().println( TAB_2+RETURN_RES_LIT );
153151
this.getWriter().println( TAB+"}" );
154152
this.getWriter().println();

0 commit comments

Comments
 (0)