Buggy code:
@ RolesAllowed ( "user" ) public int getDefaultZ ( ) { } @ RolesAllowed ( "user" ) public RenderingModel getModel ( ) { } @ RolesAllowed ( "user" ) public QuantumDef getQuantumDef ( ) { } @ RolesAllowed ( "user" ) public Pixels getPixels ( ) { } @ RolesAllowed ( "user" ) public List getAvailableModels ( ) { } @ RolesAllowed ( "user" ) public List getAvailableFamilies ( ) { } @ RolesAllowed ( "user" ) public void addCodomainMap ( CodomainMapContext mapCtx ) { } @ RolesAllowed ( "user" ) public void removeCodomainMap ( CodomainMapContext mapCtx ) { } @ RolesAllowed ( "user" ) public void updateCodomainMap ( CodomainMapContext mapCtx ) { } @ RolesAllowed ( "user" ) public void setActive ( int w , boolean active ) { } @ RolesAllowed ( "user" ) public void setChannelWindow ( int w , double start , double end ) { } @ RolesAllowed ( "user" ) public void setCodomainInterval ( int start , int end ) { } @ RolesAllowed ( "user" ) public void setDefaultT ( int t ) { } @ RolesAllowed ( "user" ) public void setDefaultZ ( int z ) { } @ RolesAllowed ( "user" ) public void setModel ( RenderingModel model ) { } @ RolesAllowed ( "user" ) public void setQuantizationMap ( int w , Family family , double coefficient , boolean noiseReduction ) { } @ RolesAllowed ( "user" ) public void setQuantumStrategy ( int bitResolution ) { } @ RolesAllowed ( "user" ) public void setRGBA ( int w , int red , int green , int blue , int alpha ) { } @ RolesAllowed ( "user" ) public boolean isPixelsTypeSigned ( ) { } @ RolesAllowed ( "user" ) public double getPixelsTypeLowerBound ( int w ) { } @ RolesAllowed ( "user" ) public int getResolutionLevel ( ) { } @ RolesAllowed ( "user" ) public int getResolutionLevels ( ) { } @ RolesAllowed ( "user" ) public List < List < Integer > > getResolutionDescriptions ( ) { } @ RolesAllowed ( "user" ) public int [ ] getTileSize ( ) { } @ RolesAllowed ( "user" ) public boolean requiresPixelsPyramid ( ) { } @ RolesAllowed ( "user" ) public void setResolutionLevel ( int resolutionLevel ) { } @ RolesAllowed ( "user" ) public double getPixelsTypeUpperBound ( int w ) { } private void checkPlaneDef ( PlaneDef pd ) { } private void closeRenderer ( ) { } protected static final String NULL_RENDERER = "RenderingEngine<seq2seq4repair_space>not<seq2seq4repair_space>ready:<seq2seq4repair_space>renderer<seq2seq4repair_space>is<seq2seq4repair_space>null.\n" + ( ( ( "This<seq2seq4repair_space>method<seq2seq4repair_space>can<seq2seq4repair_space>only<seq2seq4repair_space>be<seq2seq4repair_space>called<seq2seq4repair_space>" + "after<seq2seq4repair_space>the<seq2seq4repair_space>renderer<seq2seq4repair_space>is<seq2seq4repair_space>properly<seq2seq4repair_space>" ) + "initialized<seq2seq4repair_space>(not-null).\n" ) + "Try<seq2seq4repair_space>lookup<seq2seq4repair_space>and//or<seq2seq4repair_space>use<seq2seq4repair_space>methods." ) ; protected void errorIfInvalidState ( ) { } protected void errorIfNullPixels ( ) { } protected void errorIfNullRenderingDef ( ) { } protected void errorIfNullRenderer ( ) { } @ SuppressWarnings ( "unchecked" ) private Pixels copyPixels ( Pixels pixels ) { } private void copyChannels ( Pixels from , Pixels to ) { } private Channel copyChannel ( Channel channel ) { } private RenderingModel copyRenderingModel ( RenderingModel model ) { } private Family copyFamily ( Family family ) { } @ SuppressWarnings ( "unchecked" ) private < T extends IObject > T lookup ( final T argument ) { } private Pixels retrievePixels ( final long pixelsId ) { } private RenderingDef retrieveRndSettings ( final long pixelsId ) { } private RenderingDef loadRndSettings ( final long rdefId ) { } private List getAllEnumerations ( final Class k ) { } private boolean sanityCheckPixels ( final Pixels pix1 , final Pixels pix2 ) { } private byte [ ] projectStack ( final int algorithm , final int timepoint , final int stepping , final int start , final int end , final long pixelsId , final int i ) { } private RenderingDef createNewRenderingDef ( final Pixels pixels ) { } private void _resetDefaults ( final RenderingDef def , final Pixels pixels ) { } private PixelBuffer getPixelBuffer ( ) { } private boolean settingsBelongToCurrentUser ( ) { } private void getThumbnail ( final long rid ) { } private List < IObject > getMasksById ( PlaneDef pd ) { } private List < IObject > getAllMasks ( PlaneDef pd ) { long pid = pixelsObj . getId ( ) ; final long width = pixelsObj . getSizeX ( ) ; final long height = pixelsObj . getSizeY ( ) ; final long z = pd . getZ ( ) ; final long t = pd . getT ( ) ; List < Long > channelIds = new ArrayList < Long > ( ) ; for ( int c = 0 ; c < ( pixelsObj . getSizeC ( ) ) ; c ++ ) { if ( rendDefObj . getChannelBinding ( c ) . getActive ( ) ) { channelIds . add ( ( ( long ) ( c ) ) ) ; } } final Parameters params = new Parameters ( ) ; params . addLong ( "pid" , pid ) ; params . addLong ( "width" , width ) ; params . addLong ( "height" , height ) ; params . addLong ( "theZ" , z ) ; params . addLong ( "theT" , t ) ; params . addList ( "channelIds" , channelIds ) ; <START_BUG> final String query = "select<seq2seq4repair_space>m<seq2seq4repair_space>from<seq2seq4repair_space>Mask<seq2seq4repair_space>as<seq2seq4repair_space>m<seq2seq4repair_space>" + ( ( ( ( ( ( ( ( "join<seq2seq4repair_space>m.roi<seq2seq4repair_space>as<seq2seq4repair_space>r<seq2seq4repair_space>join<seq2seq4repair_space>r.image<seq2seq4repair_space>as<seq2seq4repair_space>i<seq2seq4repair_space>where<seq2seq4repair_space>" + "i.pixels.id<seq2seq4repair_space>=<seq2seq4repair_space>:pixelsId<seq2seq4repair_space>" ) + "<seq2seq4repair_space>and<seq2seq4repair_space>m.width<seq2seq4repair_space>=<seq2seq4repair_space>:width<seq2seq4repair_space>" ) + "<seq2seq4repair_space>and<seq2seq4repair_space>m.height<seq2seq4repair_space>=<seq2seq4repair_space>:height<seq2seq4repair_space>" ) + "<seq2seq4repair_space>and<seq2seq4repair_space>m.x<seq2seq4repair_space>=<seq2seq4repair_space>0<seq2seq4repair_space>" ) + "<seq2seq4repair_space>and<seq2seq4repair_space>m.y<seq2seq4repair_space>=<seq2seq4repair_space>0<seq2seq4repair_space>" ) + "<seq2seq4repair_space>and<seq2seq4repair_space>m.theZ<seq2seq4repair_space>=<seq2seq4repair_space>:theZ<seq2seq4repair_space>" ) + "<seq2seq4repair_space>and<seq2seq4repair_space>m.theT<seq2seq4repair_space>=<seq2seq4repair_space>:theT" ) + "<seq2seq4repair_space>and<seq2seq4repair_space>m.theC<seq2seq4repair_space>in<seq2seq4repair_space>:channelIds" ) ; <END_BUG> return ( ( List < IObject > ) ( ex . execute ( null , new Executor . SimpleWork ( this , "getMaskList" ) { @ Transactional ( readOnly = true ) public List < IObject > doWork ( Session session , ServiceFactory sf ) { return sf . getQueryService ( ) . findAllByQuery ( query , params ) ; } } ) ) ) ; } private Map < byte [ ] , Integer > getMasks ( PlaneDef pd ) { } }

Fix:
final String query = "select<seq2seq4repair_space>m<seq2seq4repair_space>from<seq2seq4repair_space>Mask<seq2seq4repair_space>as<seq2seq4repair_space>m<seq2seq4repair_space>" + ( ( ( ( ( ( ( ( "join<seq2seq4repair_space>m.roi<seq2seq4repair_space>as<seq2seq4repair_space>r<seq2seq4repair_space>join<seq2seq4repair_space>r.image<seq2seq4repair_space>as<seq2seq4repair_space>i<seq2seq4repair_space>where<seq2seq4repair_space>" + "i.pixels.id<seq2seq4repair_space>=<seq2seq4repair_space>:pixelsId<seq2seq4repair_space>" ) + "<seq2seq4repair_space>and<seq2seq4repair_space>m.width<seq2seq4repair_space>=<seq2seq4repair_space>:width<seq2seq4repair_space>" ) + "<seq2seq4repair_space>and<seq2seq4repair_space>m.height<seq2seq4repair_space>=<seq2seq4repair_space>:height<seq2seq4repair_space>" ) + "<seq2seq4repair_space>and<seq2seq4repair_space>m.x<seq2seq4repair_space>=<seq2seq4repair_space>0<seq2seq4repair_space>" ) + "<seq2seq4repair_space>and<seq2seq4repair_space>m.y<seq2seq4repair_space>=<seq2seq4repair_space>0<seq2seq4repair_space>" ) + "<seq2seq4repair_space>and<seq2seq4repair_space>m.theZ<seq2seq4repair_space>=<seq2seq4repair_space>:theZ<seq2seq4repair_space>" ) + "<seq2seq4repair_space>and<seq2seq4repair_space>m.theT<seq2seq4repair_space>=<seq2seq4repair_space>:theT" ) + "<seq2seq4repair_space>and<seq2seq4repair_space>m.theC<seq2seq4repair_space>in<seq2seq4repair_space>(:channelIds)" ) ;