nus-yam/ex-repair huggingface dataset:
Buggy code:
@ RunWith ( Arquillian . class ) @ ServerSetup ( MultipleObjectPartialActivationTestCase . MultipleObjectPartialActivationTestCaseSetup . class ) public class MultipleObjectPartialActivationTestCase extends ContainerResourceMgmtTestBase { static class MultipleObjectPartialActivationTestCaseSetup extends AbstractMgmtServerSetupTask { @ Override public void doSetup ( final ManagementClient managementClient ) throws Exception { String xml = FileUtils . readFile ( MultipleObjectPartialActivationTestCase . class , "multiple_part.xml" ) ; <START_BUG> List < ModelNode > operations = xmlToModelOperations ( xml , CURRENT . getUriString ( ) , new ResourceAdapterSubsystemParser ( ) ) ; <END_BUG> executeOperation ( operationListToCompositeOperation ( operations ) ) ; } @ Override public void tearDown ( final ManagementClient managementClient , final String containerId ) throws IOException , MgmtOperationException { } } @ Deployment public static ResourceAdapterArchive createDeployment ( ) throws Exception { } @ Resource ( mappedName = "java:jboss//name1" ) private MultipleConnectionFactory1 connectionFactory1 ; @ Resource ( mappedName = "java:jboss//Name3" ) private MultipleAdminObject1 adminObject1 ; @ Test public void testConfiguration ( ) throws Throwable { } }

Fix:
List < ModelNode > operations = xmlToModelOperations ( xml , RESOURCEADAPTERS_1_0 . getUriString ( ) , new ResourceAdapterSubsystemParser ( ) ) ;
Buggy code:
class LogicalConjunctionRequestCondition < T extends RequestCondition > extends RequestConditionComposite < T > { LogicalConjunctionRequestCondition ( Collection < T > conditions ) { } public boolean match ( HttpServletRequest request ) { Set < T > conditions = LogicalConjunctionRequestCondition . getConditions ( ) ; <START_BUG> if ( conditions . isEmpty ( ) ) { <END_BUG> return true ; } for ( T condition : conditions ) { if ( ! ( condition . match ( request ) ) ) { return false ; } } return true ; } @ Override protected String getToStringInfix ( ) { } }

Fix:
if ( LogicalConjunctionRequestCondition . isEmpty ( ) ) {
Buggy code:
public class ExternalEditorAction extends FrameAction { public ExternalEditorAction ( AbstractFrameController frameController ) { } public void actionPerformed ( ActionEvent evt ) { <START_BUG> final ComposerController composerController = ( ( ComposerController ) ( getFrameController ( ) ) ) ; <END_BUG> final SwingWorker worker = new SwingWorker ( ) { public Object construct ( ) { composerController . getView ( ) . setEnabled ( false ) ; composerController . getEditorController ( ) . setViewEnabled ( false ) ; ExternalEditor Ed = new ExternalEditor ( ) ; Ed . startExternalEditor ( composerController . getEditorController ( ) ) ; return Ed ; } public void finished ( ) { composerController . getView ( ) . setEnabled ( true ) ; composerController . getEditorController ( ) . setViewEnabled ( true ) ; } } ; worker . start ( ) ; } }

Fix:
final ComposerController composerController = ( ( ComposerController ) ( getFrameMediator ( ) ) ) ;
Buggy code:
public class ReportMainFrame extends JFrame implements Remoteable , TestListener { private static final Logger log = LoggingManager . getLoggerForClass ( ) ; private static final String DEFAULT_TITLE = ( "Apache<seq2seq4repair_space>JMeter<seq2seq4repair_space>(" + ( JMeterUtils . getJMeterVersion ( ) ) ) + ")" ; protected ReportMenuBar menuBar ; protected JScrollPane mainPanel ; protected JScrollPane treePanel ; protected JTree tree ; private ImageIcon stoppedIcon = JMeterUtils . getImage ( "thread.disabled.gif" ) ; private int previousDragXLocation = 0 ; private int previousDragYLocation = 0 ; private JButton runningIndicator ; private JDialog stoppingMessage ; public ReportMainFrame ( ) { } public ReportMainFrame ( ActionListener actionHandler , TreeModel treeModel , ReportTreeListener treeListener ) { } public void setFileLoadEnabled ( boolean enabled ) { } public void setFileSaveEnabled ( boolean enabled ) { } public void setEditMenu ( JPopupMenu menu ) { } public void setEditEnabled ( boolean enabled ) { } public void setEditAddMenu ( JMenu menu ) { } public void setEditAddEnabled ( boolean enabled ) { } public void setEditRemoveEnabled ( boolean enabled ) { } public void closeMenu ( ) { } public void showStoppingMessage ( String host ) { stoppingMessage = new JDialog ( this , JMeterUtils . getResString ( "stopping_test_title" ) , true ) ; JLabel stopLabel = new JLabel ( ( ( ( JMeterUtils . getResString ( "stopping_test" ) ) + ":<seq2seq4repair_space>" ) + host ) ) ; stopLabel . setBorder ( BorderFactory . createEmptyBorder ( 20 , 20 , 20 , 20 ) ) ; stoppingMessage . getContentPane ( ) . add ( stopLabel ) ; stoppingMessage . pack ( ) ; ComponentUtil . centerComponentInComponent ( this , stoppingMessage ) ; SwingUtilities . invokeLater ( new Runnable ( ) { public void run ( ) { if ( ( stoppingMessage ) != null ) { <START_BUG> stoppingMessage . show ( ) ; <END_BUG> } } } ) ; } public void setMainPanel ( JComponent comp ) { } public JTree getTree ( ) { } public void testStarted ( ) { } public void testStarted ( String host ) { } public void testEnded ( ) { } public void testEnded ( String host ) { } public void testIterationStart ( LoopIterationEvent event ) { } private void init ( ) { } public void setExtendedFrameTitle ( String fname ) { } protected Component createToolBar ( ) { } protected JScrollPane createTreePanel ( ) { } protected JScrollPane createMainPanel ( ) { } private JTree makeTree ( TreeModel treeModel , ReportTreeListener treeListener ) { } protected TreeCellRenderer getCellRenderer ( ) { } public void drawDraggedComponent ( Component dragIcon , int x , int y ) { } protected static class WindowHappenings extends WindowAdapter { @ Override public void windowClosing ( WindowEvent event ) { } } }

Fix:
stoppingMessage . setVisible ( true ) ;
Buggy code:
public class Ship { private int x1 ; private int y1 ; private int x2 ; private int y2 ; private int length ; @ SuppressWarnings ( "SpellCheckingInspection" ) private boolean [ ] hitmap ; private int hits ; private int remainingHealth ; private boolean sunk = false ; private String name ; private Ship . ShipClass shipClass ; private int [ ] filterMask ; private ActionFilter [ ] filters ; private ArrayList < ActionFilter > fireFilters ; private boolean isSelected = false ; public static enum ShipClass { CARRIER , BATTLESHIP , DESTROYER , SCOUT ; } public Ship ( int x1 , int y1 , int x2 , int y2 , int length , String name , Ship . ShipClass shipClass , int [ ] filterMask ) { } public int getX1 ( ) { } public int getY1 ( ) { } public int getX2 ( ) { } public int getY2 ( ) { } public int getLength ( ) { } public int getHits ( ) { } public boolean isSpaceHit ( int space ) { } public boolean isCoordHit ( int x , int y ) { } public int [ ] [ ] getCoords ( ) { } public int getRemainingHealth ( ) { } public boolean isSunk ( ) { } public String getName ( ) { } public Ship . ShipClass getShipClass ( ) { } public boolean [ ] getHitmap ( ) { } public void setSelected ( boolean state ) { } public boolean isSelected ( ) { } public boolean setFilter ( ActionFilter filter , int space ) { } public boolean hit ( int space ) { } public boolean hit ( int x , int y ) { int dx = Math . abs ( ( ( this . x1 ) - x ) ) ; int dy = Math . abs ( ( ( this . y1 ) - y ) ) ; <START_BUG> int space = dx & dy ; <END_BUG> return hit ( space ) ; } public boolean fire ( int x , int y ) { } }

Fix:
int space = dx | dy ;
Buggy code:
public class NullifyProcess extends WorkflowActivity < SiadapProcess , NullifyRatifyActivityInformation > { @ Override public boolean isActive ( SiadapProcess process , User user ) { Boolean nulled = process . getSiadap ( ) . getNulled ( ) ; <START_BUG> return ( ( nulled == null ) || ( ! nulled ) ) && ( ( DynamicGroup . get ( "StructureManagementGroup" ) . isMember ( Authenticate . getUser ( ) ) ) || ( DynamicGroup . get ( "CcaMembersGroup" ) . isMember ( Authenticate . getUser ( ) ) ) ) ; <END_BUG> } @ Override protected void process ( NullifyRatifyActivityInformation activityInformation ) { } @ Override protected String [ ] getArgumentsDescription ( NullifyRatifyActivityInformation activityInformation ) { } @ Override public boolean isUserAwarenessNeeded ( SiadapProcess process ) { } @ Override public ActivityInformation < SiadapProcess > getActivityInformation ( SiadapProcess process ) { } @ Override public String getUsedBundle ( ) { } }

Fix:
return ( ( nulled == null ) || ( ! nulled ) ) && ( ( DynamicGroup . get ( "SiadapStructureManagementGroup" ) . isMember ( Authenticate . getUser ( ) ) ) || ( DynamicGroup . get ( "CcaMembersGroup" ) . isMember ( Authenticate . getUser ( ) ) ) ) ;
Buggy code:
public class LoginActivity extends Activity { Button b ; EditText id_Edt ; EditText pw_Edt ; TextView tv ; HttpPost httppost ; StringBuffer buffer ; HttpResponse response ; HttpClient httpclient ; List < NameValuePair > nameValuePairs ; ProgressDialog dialog = null ; public String id ; public String pw ; @ Override public void onCreate ( Bundle savedInstanceState ) { } public void showAlert ( ) { } private class Register extends AsyncTask < String , Object , Integer > { protected void onPreExecute ( ) { } @ Override protected Integer doInBackground ( String ... params ) { try { HttpClient client = new DefaultHttpClient ( ) ; Log . d ( "test" , "login<seq2seq4repair_space>ing" ) ; try { ArrayList < NameValuePair > nameValuePairs1 = new ArrayList < NameValuePair > ( ) ; nameValuePairs1 . add ( new org . apache . http . message . BasicNameValuePair ( "id" , id_Edt . getText ( ) . toString ( ) ) ) ; nameValuePairs1 . add ( new org . apache . http . message . BasicNameValuePair ( "pw" , pw_Edt . getText ( ) . toString ( ) ) ) ; HttpPost httpPost1 = new HttpPost ( GlobalVariable . login ) ; UrlEncodedFormEntity entityRequest1 = new UrlEncodedFormEntity ( nameValuePairs1 , "UTF-8" ) ; httpPost1 . setEntity ( entityRequest1 ) ; ResponseHandler < String > handler1 = new BasicResponseHandler ( ) ; String result1 = client . execute ( httpPost1 , handler1 ) ; result1 = result1 . trim ( ) . toString ( ) ; Log . d ( "test" , ( "result1:" + result1 ) ) ; if ( ! ( result1 . equals ( "not_exist" ) ) ) { SharedPreferences spf = getSharedPreferences ( DABARUNUSER , 0 ) ; SharedPreferences . Editor spfEdit = spf . edit ( ) ; id = id_Edt . getText ( ) . toString ( ) ; pw = pw_Edt . getText ( ) . toString ( ) ; spfEdit . putString ( SPF_ID , id ) ; spfEdit . commit ( ) ; <START_BUG> Intent intent = new Intent ( LoginActivity . this , PictureActivity . class ) ; <END_BUG> startActivity ( intent ) ; } } catch ( Exception e ) { } } catch ( Exception e ) { } return - 1 ; } } }

Fix:
Intent intent = new Intent ( LoginActivity . this , EducateActivity . class ) ;
Buggy code:
public class QueueRemove extends AbstractMessagingSubsystemUpdate < Void > { private static final long serialVersionUID = 5921273777496713096L ; private final String name ; public QueueRemove ( final String name ) { } protected void applyUpdate ( MessagingSubsystemElement element ) throws UpdateFailedException { } protected < P > void applyUpdate ( UpdateContext context , UpdateResultHandler < ? super Void , P > resultHandler , P param ) { <START_BUG> final ServiceController < ? > service = context . getServiceContainer ( ) . getService ( CORE_QUEUE_BASE . append ( name ) ) ; <END_BUG> if ( service == null ) { resultHandler . handleSuccess ( null , param ) ; } else { service . addListener ( new UpdateResultHandler . ServiceRemoveListener < P > ( resultHandler , param ) ) ; } } public AbstractSubsystemUpdate < MessagingSubsystemElement , ? > getCompensatingUpdate ( MessagingSubsystemElement original ) { } }

Fix:
final ServiceController < ? > service = context . getServiceRegistry ( ) . getService ( CORE_QUEUE_BASE . append ( name ) ) ;
Buggy code:
@ RunWith ( Arquillian . class ) @ ServerSetup ( BasicDoubleDeploymentFail16_1TestCase . BasicDoubleDeploymentTestCaseSetup . class ) public class BasicDoubleDeploymentFail16_1TestCase extends ContainerResourceMgmtTestBase { private static final String DEPLOYMENT_MODULE_NAME = "basic" ; private static final String DEPLOYMENT_NAME = ( BasicDoubleDeploymentFail16_1TestCase . DEPLOYMENT_MODULE_NAME ) + ".rar" ; private static final String SUB_DEPLOYMENT_MODULE_NAME = "somejar" ; private static final String SUB_DEPLOYMENT_NAME = ( BasicDoubleDeploymentFail16_1TestCase . SUB_DEPLOYMENT_MODULE_NAME ) + ".jar" ; private static final String RAR_1_NAME = BasicDoubleDeploymentFail16_1TestCase . DEPLOYMENT_NAME ; static class BasicDoubleDeploymentTestCaseSetup extends AbstractMgmtServerSetupTask { @ Override public void doSetup ( final ManagementClient managementClient ) throws Exception { String xml = FileUtils . readFile ( BasicDeployment16TestCase . class , "basic16.xml" ) ; List < ModelNode > operations = xmlToModelOperations ( xml , RESOURCEADAPTERS_1_0 . getUriString ( ) , new ResourceAdapterSubsystemParser ( ) ) ; executeOperation ( operationListToCompositeOperation ( operations ) ) ; xml = FileUtils . readFile ( BasicDeployment16TestCase . class , "basic16-duplicate.xml" ) ; operations = xmlToModelOperations ( xml , RESOURCEADAPTERS_1_0 . getUriString ( ) , new ResourceAdapterSubsystemParser ( ) ) ; final ModelNode result = executeOperation ( operationListToCompositeOperation ( operations ) , false ) ; Assert . assertTrue ( ( ! ( Operations . isSuccessfulOutcome ( result ) ) ) ) ; final String failureDescription = result . get ( "result" ) . get ( "step-1" ) . get ( "failure-description" ) . asString ( ) ; <START_BUG> Assert . assertTrue ( failureDescription . startsWith ( "JBAS014803:<seq2seq4repair_space>Duplicate<seq2seq4repair_space>resource" ) ) ; <END_BUG> } @ Override public void tearDown ( final ManagementClient managementClient , final String containerId ) throws Exception { } private ModelNode getAddress ( final String name ) { } } @ Deployment public static ResourceAdapterArchive createDeployment ( ) { } @ Resource ( mappedName = "java:jboss//name1" ) private MultipleConnectionFactory1 connectionFactory1 ; @ Resource ( mappedName = "java:jboss//Name3" ) private MultipleAdminObject1 adminObject1 ; @ Test public void testConfiguration ( ) throws Throwable { } @ Test ( expected = NameNotFoundException . class ) public void testNonExistingConfig_1 ( ) throws Exception { } @ Test ( expected = NameNotFoundException . class ) public void testNonExistingConfig_2 ( ) throws Exception { } }

Fix:
Assert . assertTrue ( failureDescription . startsWith ( "WFLYCTL0212:<seq2seq4repair_space>Duplicate<seq2seq4repair_space>resource" ) ) ;
Buggy code:
public class PublisherSampler extends BaseJMSSampler implements TestListener { private static final long serialVersionUID = 233L ; private static final Logger log = LoggingManager . getLoggerForClass ( ) ; private static final String INPUT_FILE = "jms.input_file" ; private static final String RANDOM_PATH = "jms.random_path" ; private static final String TEXT_MSG = "jms.text_message" ; private static final String CONFIG_CHOICE = "jms.config_choice" ; private static final String MESSAGE_CHOICE = "jms.config_msg_type" ; private transient Publisher publisher = null ; private static final FileServer FSERVER = FileServer . getFileServer ( ) ; private String file_contents = null ; public PublisherSampler ( ) { } public void testStarted ( String test ) { } public void testEnded ( String test ) { } public void testEnded ( ) { } public void testStarted ( ) { } public void testIterationStart ( LoopIterationEvent event ) { } private void initClient ( ) throws JMSException , NamingException { <START_BUG> publisher = new Publisher ( getUseJNDIPropertiesAsBoolean ( ) , getJNDIInitialContextFactory ( ) , getProviderUrl ( ) , getConnectionFactory ( ) , getDestination ( ) , isUseAuth ( ) , getUsername ( ) , getPassword ( ) , getDestinationSetup ( ) ) ; <END_BUG> ClientPool . addClient ( publisher ) ; PublisherSampler . log . debug ( "PublisherSampler.initClient<seq2seq4repair_space>called" ) ; } @ Override public SampleResult sample ( ) { } private Map < String , Object > getMapContent ( ) throws ClassNotFoundException , IllegalAccessException , IllegalArgumentException , NoSuchMethodException , SecurityException , InvocationTargetException { } private String getMessageContent ( ) { } public String getFileContent ( String path ) { } public void setConfigChoice ( String choice ) { } private static final String USE_FILE_LOCALNAME = JMeterUtils . getResString ( USE_FILE_RSC ) ; private static final String USE_RANDOM_LOCALNAME = JMeterUtils . getResString ( USE_RANDOM_RSC ) ; public String getConfigChoice ( ) { } public void setMessageChoice ( String choice ) { } public String getMessageChoice ( ) { } public void setInputFile ( String file ) { } public String getInputFile ( ) { } public void setRandomPath ( String path ) { } public String getRandomPath ( ) { } public void setTextMessage ( String message ) { } public String getTextMessage ( ) { } }

Fix:
publisher = new Publisher ( getUseJNDIPropertiesAsBoolean ( ) , getJNDIInitialContextFactory ( ) , getProviderUrl ( ) , getConnectionFactory ( ) , getDestination ( ) , isUseAuth ( ) , getUsername ( ) , getPassword ( ) , isDestinationStatic ( ) ) ;
Buggy code:
public class ExtractOperatorNode extends UnaryOperatorNode { private static final String [ ] fieldName = new String [ ] { "YEAR" , "MONTH" , "DAY" , "HOUR" , "MINUTE" , "SECOND" } ; private static final String [ ] fieldMethod = new String [ ] { "getYear" , "getMonth" , "getDate" , "getHours" , "getMinutes" , "getSeconds" } ; private int extractField ; public void init ( Object field , Object operand ) { } public ValueNode bindExpression ( FromList fromList , SubqueryList subqueryList , Vector aggregateVector ) throws StandardException { int operandType ; TypeId opTypeId ; <START_BUG> super . bindExpression ( fromList , subqueryList , aggregateVector ) ; <END_BUG> opTypeId = operand . getTypeId ( ) ; operandType = opTypeId . getJDBCTypeId ( ) ; TypeCompiler tc = operand . getTypeCompiler ( ) ; if ( opTypeId . isStringTypeId ( ) ) { int castType = ( ( extractField ) < 3 ) ? Types . DATE : Types . TIME ; operand = ( ( ValueNode ) ( getNodeFactory ( ) . getNode ( CAST_NODE , operand , DataTypeDescriptor . getBuiltInDataTypeDescriptor ( castType , true , tc . getCastToCharWidth ( operand . getTypeServices ( ) ) ) , getContextManager ( ) ) ) ) ; ( ( CastNode ) ( operand ) ) . bindCastNodeOnly ( ) ; opTypeId = operand . getTypeId ( ) ; operandType = opTypeId . getJDBCTypeId ( ) ; } if ( ! ( ( ( operandType == ( Types . DATE ) ) || ( operandType == ( Types . TIME ) ) ) || ( operandType == ( Types . TIMESTAMP ) ) ) ) { throw StandardException . newException ( LANG_UNARY_FUNCTION_BAD_TYPE , ( "EXTRACT<seq2seq4repair_space>" + ( ExtractOperatorNode . fieldName [ extractField ] ) ) , opTypeId . getSQLTypeName ( ) ) ; } if ( ( operandType == ( Types . DATE ) ) && ( ( extractField ) > ( DateTimeDataValue . DAY_FIELD ) ) ) { throw StandardException . newException ( LANG_UNARY_FUNCTION_BAD_TYPE , ( "EXTRACT<seq2seq4repair_space>" + ( ExtractOperatorNode . fieldName [ extractField ] ) ) , opTypeId . getSQLTypeName ( ) ) ; } if ( ( operandType == ( Types . TIME ) ) && ( ( extractField ) < ( DateTimeDataValue . HOUR_FIELD ) ) ) { throw StandardException . newException ( LANG_UNARY_FUNCTION_BAD_TYPE , ( "EXTRACT<seq2seq4repair_space>" + ( ExtractOperatorNode . fieldName [ extractField ] ) ) , opTypeId . getSQLTypeName ( ) ) ; } if ( ( operandType == ( Types . TIMESTAMP ) ) && ( ( extractField ) == ( DateTimeDataValue . SECOND_FIELD ) ) ) { setType ( new DataTypeDescriptor ( TypeId . getBuiltInTypeId ( Types . DOUBLE ) , operand . getTypeServices ( ) . isNullable ( ) ) ) ; } else { setType ( new DataTypeDescriptor ( TypeId . INTEGER_ID , operand . getTypeServices ( ) . isNullable ( ) ) ) ; } return this ; } public String toString ( ) { } }

Fix:
bindOperand ( fromList , subqueryList , aggregateVector ) ;
Buggy code:
public class MapPanel extends JPanel implements MouseListener , MouseMotionListener , MouseWheelListener { BufferedImage biBackend ; BufferedImage biFrontendOriginal ; BufferedImage biBackendOriginal ; JScrollBar sliderX ; JScrollBar sliderY ; JLabel image ; Point drag ; float zoomFactorSelected = 1 ; float zoomFactor = ( ( float ) ( 0.1 ) ) ; Map map2 ; int x ; int y ; int newHeight ; int newWidth ; public MapPanel ( BufferedImage Frontend , BufferedImage Backend , Map < Color , Integer > map ) { } public void paintComponent ( Graphics g ) { System . out . println ( "paint" ) ; super . paintComponent ( g ) ; newHeight = ( ( int ) ( ( ( biFrontendOriginal . getHeight ( ) ) * ( zoomFactorSelected ) ) // 2 ) ) ; System . out . println ( newHeight ) ; newWidth = ( ( int ) ( ( ( float ) ( newHeight ) ) * ( ( ( float ) ( this . getWidth ( ) ) ) // ( ( float ) ( this . getHeight ( ) ) ) ) ) ) ; System . out . println ( newWidth ) ; if ( ( ( y ) + ( newHeight ) ) > ( biFrontendOriginal . getHeight ( ) ) ) { System . out . println ( "1" ) ; y = ( biFrontendOriginal . getHeight ( ) ) - ( newHeight ) ; } if ( ( ( x ) + ( newWidth ) ) > ( biFrontendOriginal . getWidth ( ) ) ) { System . out . println ( "2" ) ; x = ( biFrontendOriginal . getWidth ( ) ) - ( newWidth ) ; } if ( ( newHeight ) > ( y ) ) { System . out . println ( "3" ) ; y = newHeight ; } if ( ( newWidth ) > ( x ) ) { System . out . println ( "4" ) ; x = newWidth ; } <START_BUG> g . drawImage ( biFrontendOriginal , 0 , 0 , this . getWidth ( ) , this . getWidth ( ) , ( ( x ) - ( newWidth ) ) , ( ( y ) - ( newHeight ) ) , ( ( newWidth ) * 2 ) , ( ( newHeight ) * 2 ) , null ) ; <END_BUG> } public void mouseClicked ( MouseEvent arg0 ) { } public void mouseEntered ( MouseEvent arg0 ) { } public void mouseExited ( MouseEvent arg0 ) { } public void mousePressed ( MouseEvent arg0 ) { } public void mouseReleased ( MouseEvent arg0 ) { } public void mouseDragged ( MouseEvent e ) { } public void mouseMoved ( MouseEvent e ) { } public void mouseWheelMoved ( MouseWheelEvent e ) { } }

Fix:
g . drawImage ( biFrontendOriginal , 0 , 0 , this . getWidth ( ) , this . getWidth ( ) , ( ( x ) - ( newWidth ) ) , ( ( y ) - ( newHeight ) ) , ( ( x ) + ( newWidth ) ) , ( ( y ) + ( newHeight ) ) , null ) ;
Buggy code:
public class QueuelessThreadPoolAdd extends AbstractAddStepHandler { static final AttributeDefinition [ ] BLOCKING_ATTRIBUTES = new AttributeDefinition [ ] { PoolAttributeDefinitions . KEEPALIVE_TIME , PoolAttributeDefinitions . MAX_THREADS , PoolAttributeDefinitions . THREAD_FACTORY } ; static final AttributeDefinition [ ] NON_BLOCKING_ATTRIBUTES = new AttributeDefinition [ ( QueuelessThreadPoolAdd . BLOCKING_ATTRIBUTES . length ) + 1 ] ; static final AttributeDefinition [ ] RW_ATTRIBUTES = new AttributeDefinition [ ] { PoolAttributeDefinitions . KEEPALIVE_TIME , PoolAttributeDefinitions . MAX_THREADS } ; private final boolean blocking ; private final ThreadFactoryResolver threadFactoryResolver ; private final HandoffExecutorResolver handoffExecutorResolver ; private final ServiceName serviceNameBase ; public QueuelessThreadPoolAdd ( boolean blocking , ThreadFactoryResolver threadFactoryResolver , HandoffExecutorResolver handoffExecutorResolver , ServiceName serviceNameBase ) { } @ Override protected void populateModel ( final ModelNode operation , final ModelNode model ) throws OperationFailedException { } @ Override protected void performRuntime ( final OperationContext context , final ModelNode operation , final ModelNode model , final ServiceVerificationHandler verificationHandler , final List < ServiceController < ? > > newControllers ) throws OperationFailedException { final QueuelessThreadPoolParameters params = ThreadPoolManagementUtils . parseQueuelessThreadPoolParameters ( context , operation , model , blocking ) ; final QueuelessThreadPoolService service = new QueuelessThreadPoolService ( params . getMaxThreads ( ) , blocking , params . getKeepAliveTime ( ) ) ; <START_BUG> ThreadPoolManagementUtils . installThreadPoolService ( service , params . getName ( ) , serviceNameBase , params . getThreadFactory ( ) , threadFactoryResolver , service . getThreadFactoryInjector ( ) , params . getHandoffExecutor ( ) , handoffExecutorResolver , service . getHandoffExecutorInjector ( ) , context . getServiceTarget ( ) , newControllers , verificationHandler ) ; <END_BUG> } boolean isBlocking ( ) { } ServiceName getServiceNameBase ( ) { } ThreadFactoryResolver getThreadFactoryResolver ( ) { } HandoffExecutorResolver getHandoffExecutorResolver ( ) { } }

Fix:
ThreadPoolManagementUtils . installThreadPoolService ( service , params . getName ( ) , serviceNameBase , params . getThreadFactory ( ) , threadFactoryResolver , service . getThreadFactoryInjector ( ) , params . getHandoffExecutor ( ) , handoffExecutorResolver , ( blocking ? null : service . getHandoffExecutorInjector ( ) ) , context . getServiceTarget ( ) , newControllers , verificationHandler ) ;
Buggy code:
public class Update extends ActionBase { public static void updatePlugin ( String path_to_update , boolean debug ) { } private static boolean compareVersion ( Pluginspecs new_plugin_specs ) { boolean canupdate = false ; int length ; try { String config_line ; String [ ] splitted = Delete . findPluginLine ( new_plugin_specs . name ( ) ) . split ( Pattern . quote ( INTERSEPARATOR ) ) ; config_line = splitted [ ( ( splitted . length ) - 1 ) ] ; String [ ] version = config_line . split ( Pattern . quote ( SEPARATOR ) ) [ 0 ] . split ( FILESPLITTER ) ; String [ ] newversion = new_plugin_specs . version ( ) . split ( FILESPLITTER ) ; if ( ( version . length ) >= ( newversion . length ) ) length = newversion . length ; else { length = version . length ; canupdate = true ; } for ( int i = 0 ; i < length ; i ++ ) { if ( ( Integer . parseInt ( newversion [ i ] ) ) > ( Integer . parseInt ( version [ i ] ) ) ) return true ; else if ( ( Integer . parseInt ( newversion [ i ] ) ) < ( Integer . parseInt ( version [ i ] ) ) ) return false ; } } catch ( IOException | PluginNotFoundException e ) { <START_BUG> e . getMessage ( ) ; <END_BUG> } return canupdate ; } }

Fix:
System . err . println ( e . getMessage ( ) ) ;
Buggy code:
public class VariableDeclarationStatement extends Statement { public static final SimplePropertyDescriptor MODIFIERS_PROPERTY = new SimplePropertyDescriptor ( VariableDeclarationStatement . class , "modifiers" , int . class , ASTNode . MANDATORY ) ; public static final ChildListPropertyDescriptor MODIFIERS2_PROPERTY = new ChildListPropertyDescriptor ( VariableDeclarationStatement . class , "modifiers" , IExtendedModifier . class , ASTNode . CYCLE_RISK ) ; public static final ChildPropertyDescriptor TYPE_PROPERTY = new ChildPropertyDescriptor ( VariableDeclarationStatement . class , "type" , Type . class , ASTNode . MANDATORY , ASTNode . NO_CYCLE_RISK ) ; public static final ChildListPropertyDescriptor FRAGMENTS_PROPERTY = new ChildListPropertyDescriptor ( VariableDeclarationStatement . class , "fragments" , VariableDeclarationFragment . class , ASTNode . CYCLE_RISK ) ; private static final List PROPERTY_DESCRIPTORS_2_0 ; private static final List PROPERTY_DESCRIPTORS_3_0 ; public static List propertyDescriptors ( int apiLevel ) { } private ASTNode . NodeList modifiers = null ; private int modifierFlags = Modifier . NONE ; private Type baseType = null ; private ASTNode . NodeList variableDeclarationFragments = new ASTNode . NodeList ( VariableDeclarationStatement . FRAGMENTS_PROPERTY ) ; VariableDeclarationStatement ( AST ast ) { } final List internalStructuralPropertiesForType ( int apiLevel ) { } final int internalGetSetIntProperty ( SimplePropertyDescriptor property , boolean get , int value ) { } final ASTNode internalGetSetChildProperty ( ChildPropertyDescriptor property , boolean get , ASTNode child ) { } final List internalGetChildListProperty ( ChildListPropertyDescriptor property ) { } final int getNodeType0 ( ) { } ASTNode clone0 ( AST target ) { VariableDeclarationStatement result = new VariableDeclarationStatement ( target ) ; <START_BUG> result . setSourceRange ( this . getStartPosition ( ) , this . getLength ( ) ) ; <END_BUG> result . copyLeadingComment ( this ) ; if ( ( this . ast . apiLevel ) == ( AST . JLS2_INTERNAL ) ) { result . setModifiers ( getModifiers ( ) ) ; } if ( ( this . ast . apiLevel ) >= ( AST . JLS3 ) ) { result . modifiers ( ) . addAll ( ASTNode . copySubtrees ( target , modifiers ( ) ) ) ; } result . setType ( ( ( Type ) ( getType ( ) . clone ( target ) ) ) ) ; result . fragments ( ) . addAll ( ASTNode . copySubtrees ( target , fragments ( ) ) ) ; return result ; } final boolean subtreeMatch0 ( ASTMatcher matcher , Object other ) { } void accept0 ( ASTVisitor visitor ) { } public List modifiers ( ) { } public int getModifiers ( ) { } public void setModifiers ( int modifiers ) { } final void internalSetModifiers ( int pmodifiers ) { } public Type getType ( ) { } public void setType ( Type type ) { } public List fragments ( ) { } int memSize ( ) { } int treeSize ( ) { } }

Fix:
result . setSourceRange ( getStartPosition ( ) , getLength ( ) ) ;
Buggy code:
public class NPointCrossoverMator < T extends LinearGenomeIndividual < G > , G extends Gene > extends Mator < T > { public static final String P_NUM_CUT_POINTS = "numCutPoints" ; public static final String P_ALLOW_CLONING = "allowCloning" ; public static final String P_RANDOM = "random" ; private final int numCutPoints ; private final Random random ; private final boolean allowCloning ; @ Override public int getNumParents ( ) { } @ Override public int getNumChildren ( ) { } public int getNumCutPoints ( ) { } public NPointCrossoverMator ( final Parameters parameters , final String base ) { } @ Override public List < T > mate ( final List < T > parents ) { } private boolean allParentsHaveOrDontHaveParents ( final List < T > parents ) { assert parents != null ; assert ( parents . size ( ) ) > 0 ; final boolean hasParents = parents . get ( 0 ) . hasParents ( ) ; for ( int i = 1 ; i < ( parents . size ( ) ) ; i ++ ) <START_BUG> if ( ! ( parents . get ( i ) . hasParents ( ) ) ) <END_BUG> return false ; return true ; } private List < List < G > > getSegments ( final int start , final int end , final List < List < G > > parents ) { } private boolean genomesSameLength ( final List < List < G > > genomes ) { } private int [ ] getNewCutPoints ( final int genomeLength ) { } @ Override public final boolean repOK ( ) { } @ Override public String toString ( ) { } @ Override public boolean equals ( final Object ref ) { } @ Override public int hashCode ( ) { } }

Fix:
if ( ( parents . get ( i ) . hasParents ( ) ) != hasParents )
Buggy code:
public class ReplyToAllCommand extends ReplyCommand { protected final String [ ] headerfields = new String [ ] { "Subject" , "From" , "To" , "Cc" , "Reply-To" , "Message-ID" , "In-Reply-To" , "References" } ; public ReplyToAllCommand ( ICommandReference reference ) { } protected void initHeader ( AbstractMessageFolder folder , Object [ ] uids ) throws Exception { Header header = folder . getHeaderFields ( uids [ 0 ] , headerfields ) ; Integer accountUid = ( ( Integer ) ( folder . getAttribute ( uids [ 0 ] , "columba.accountuid" ) ) ) ; AccountItem accountItem = MessageBuilderHelper . getAccountItem ( accountUid ) ; Address accountAddress = MailConfig . getInstance ( ) . getAccountList ( ) . uidGet ( accountUid . intValue ( ) ) . getIdentity ( ) . getAddress ( ) ; BasicHeader rfcHeader = new BasicHeader ( header ) ; model . setSubject ( MessageBuilderHelper . createReplySubject ( rfcHeader . getSubject ( ) ) ) ; LinkedList toList = new LinkedList ( ) ; toList . addAll ( Arrays . asList ( rfcHeader . getReplyTo ( ) ) ) ; toList . add ( rfcHeader . getFrom ( ) ) ; toList . addAll ( Arrays . asList ( rfcHeader . getTo ( ) ) ) ; Collections . sort ( toList ) ; Iterator it = toList . iterator ( ) ; Address last = ( ( Address ) ( it . next ( ) ) ) ; while ( it . hasNext ( ) ) { Address act = ( ( Address ) ( it . next ( ) ) ) ; <START_BUG> if ( ( last . equals ( act ) ) || ( accountAddress . equals ( act ) ) ) { <END_BUG> it . remove ( ) ; } else { last = act ; } } Address [ ] to = ( ( Address [ ] ) ( toList . toArray ( new Address [ ] { } ) ) ) ; MessageBuilderHelper . addAddressesToAddressbook ( to ) ; model . setTo ( to ) ; model . setCc ( rfcHeader . getCc ( ) ) ; MessageBuilderHelper . createMailingListHeaderItems ( header , model ) ; model . setAccountItem ( accountItem ) ; } }

Fix:
if ( ( last . equals ( act ) ) || ( ( accountAddress != null ) && ( accountAddress . equals ( act ) ) ) ) {
Buggy code:
final class FreqProxTermsWriterPerField extends TermsHashConsumerPerField implements Comparable < FreqProxTermsWriterPerField > { final FreqProxTermsWriterPerThread perThread ; final TermsHashPerField termsHashPerField ; final FieldInfo fieldInfo ; final DocState docState ; final FieldInvertState fieldState ; IndexOptions indexOptions ; PayloadAttribute payloadAttribute ; public FreqProxTermsWriterPerField ( TermsHashPerField termsHashPerField , FreqProxTermsWriterPerThread perThread , FieldInfo fieldInfo ) { } @ Override int getStreamCount ( ) { <START_BUG> if ( ( fieldInfo . indexOptions ) != ( IndexOptions . DOCS_AND_FREQS_AND_POSITIONS ) ) <END_BUG> return 1 ; else return 2 ; } @ Override void finish ( ) { } boolean hasPayloads ; @ Override void skippingLongTerm ( ) throws IOException { } public int compareTo ( FreqProxTermsWriterPerField other ) { } void reset ( ) { } @ Override boolean start ( Fieldable [ ] fields , int count ) { } @ Override void start ( Fieldable f ) { } void writeProx ( final int termID , int proxCode ) { } @ Override void newTerm ( final int termID ) { } @ Override void addTerm ( final int termID ) { } @ Override ParallelPostingsArray createPostingsArray ( int size ) { } static final class FreqProxPostingsArray extends ParallelPostingsArray { public FreqProxPostingsArray ( int size ) { } int [ ] docFreqs ; int [ ] lastDocIDs ; int [ ] lastDocCodes ; int [ ] lastPositions ; @ Override ParallelPostingsArray newInstance ( int size ) { } @ Override void copyTo ( ParallelPostingsArray toArray , int numToCopy ) { } @ Override int bytesPerPosting ( ) { } } public void abort ( ) { } }

Fix:
if ( ( indexOptions ) != ( IndexOptions . DOCS_AND_FREQS_AND_POSITIONS ) )
Buggy code:
public class SnippetHandler { DBCollection coll ; BasicDBObject doc ; public Snippet addSnippet ( String boardid , Snippet snippet ) { } public BasicDBObject createSnippetDBObject ( Snippet snippet ) { } public Snippet getSnippet ( String boardid , String snippetId ) { } public Snippet updateSnippet ( String boardid , Snippet snippet ) { } private String convertObjectIdToString ( ObjectId id ) { } public boolean deleteSnippet ( String boardid , String snippetId ) { } public ArrayList < ArrayList < Snippet > > getAllSnippets ( String boardid , String userId ) { } public boolean updateAccessList ( String boardId , ArrayList < String > userList ) throws Exception { System . out . println ( ( "updateAccessList......boardId<seq2seq4repair_space>:<seq2seq4repair_space>" + boardId ) ) ; coll = MongoFactory . getConnection ( ) . getCollection ( "Board" ) ; ObjectId bId = new ObjectId ( boardId ) ; <START_BUG> DBObject dbo = new BasicDBObject ( "_id" , bId ) . append ( "Privacy" , "Private" ) ; <END_BUG> BasicDBObject updateCommand = new BasicDBObject ( "$push" , new BasicDBObject ( "AccessList" , new BasicDBObject ( "$each" , getUserFromEmail ( userList ) ) ) ) ; WriteResult result = coll . update ( dbo , updateCommand ) ; if ( ( result . getN ( ) ) != 0 ) { return true ; } else { throw new com . mongodb . MongoException ( updateCommand ) ; } } public ArrayList < String > getUserFromEmail ( ArrayList < String > userList ) throws Exception { } }

Fix:
DBObject dbo = new BasicDBObject ( "_id" , bId ) ;
Buggy code:
public class ServletWebResponse extends WebResponse { private final HttpServletResponse httpServletResponse ; private final ServletWebRequest webRequest ; public ServletWebResponse ( ServletWebRequest webRequest , HttpServletResponse httpServletResponse ) { } public final HttpServletResponse getHttpServletResponse ( ) { } @ Override public void addCookie ( Cookie cookie ) { } @ Override public void clearCookie ( Cookie cookie ) { } @ Override public void setContentLength ( long length ) { } @ Override public void setContentType ( String mimeType ) { } @ Override public void setDateHeader ( String name , long date ) { } @ Override public void setHeader ( String name , String value ) { } @ Override public void write ( CharSequence sequence ) { } @ Override public void write ( byte [ ] array ) { } @ Override public void setStatus ( int sc ) { } @ Override public void sendError ( int sc , String msg ) { } @ Override public String encodeURL ( CharSequence url ) { } private String getAbsolutePrefix ( ) { } private String getAbsoluteURL ( String url ) { if ( ( url . startsWith ( "http:////" ) ) || ( url . startsWith ( "https:////" ) ) ) { return url ; } else if ( url . startsWith ( "//" ) ) { return ( getAbsolutePrefix ( ) ) + url ; } else { HttpServletRequest httpServletRequest = webRequest . getHttpServletRequest ( ) ; Charset charset = RequestUtils . getCharset ( httpServletRequest ) ; final Url current ; <START_BUG> current = webRequest . getBaseUrl ( ) ; <END_BUG> Url append = Url . parse ( url , charset ) ; current . concatSegments ( append . getSegments ( ) ) ; Url result = new Url ( current . getSegments ( ) , append . getQueryParameters ( ) ) ; return Strings . join ( "//" , getAbsolutePrefix ( ) , httpServletRequest . getContextPath ( ) , webRequest . getFilterPrefix ( ) , result . toString ( ) ) ; } } private boolean redirect = false ; @ Override public void sendRedirect ( String url ) { } @ Override public boolean isRedirect ( ) { } @ Override public void flush ( ) { } @ Override public void reset ( ) { } }

Fix:
current = webRequest . getClientUrl ( ) ;
Buggy code:
public class BaseLocalContainerInvoker implements LocalContainerInvoker { protected Container container ; protected String jndiName ; protected TransactionManager transactionManager ; protected EJBLocalHome home ; protected EJBLocalObject statelessObject ; protected Map beanMethodInvokerMap ; protected Map homeMethodInvokerMap ; private static TransactionPropagationContextFactory tpcFactory ; public String getJndiName ( ) { } public void setContainer ( Container con ) { } public void init ( ) throws Exception { } public void start ( ) throws Exception { } public void stop ( ) { } public void destroy ( ) { } public EJBLocalHome getEJBLocalHome ( ) { } public EJBLocalObject getStatelessSessionEJBLocalObject ( ) { } public EJBLocalObject getStatefulSessionEJBLocalObject ( Object id ) { } public EJBLocalObject getEntityEJBLocalObject ( Object id ) { } public Collection getEntityLocalCollection ( Collection ids ) { } public Object invokeHome ( Method m , Object [ ] args ) throws Exception { } Principal getPrincipal ( ) { } Object getCredential ( ) { } Transaction getTransaction ( ) throws SystemException { } public Object invoke ( Object id , Method m , Object [ ] args ) throws Exception { } class HomeProxy extends LocalHomeProxy implements InvocationHandler { protected String getJndiName ( ) { } protected Object getId ( ) { return jndiName ; } public final Object invoke ( final Object proxy , final Method m , Object [ ] args ) throws Throwable { } } class EntityProxy extends LocalProxy implements InvocationHandler { CacheKey cacheKey ; EntityProxy ( Object id ) { } protected String getJndiName ( ) { } protected Object getId ( ) { <START_BUG> return cacheKey . id ; <END_BUG> } public final Object invoke ( final Object proxy , final Method m , Object [ ] args ) throws Throwable { } } class StatefulSessionProxy extends LocalProxy implements InvocationHandler { Object id ; StatefulSessionProxy ( Object id ) { } protected String getJndiName ( ) { } protected Object getId ( ) { return id ; } public final Object invoke ( final Object proxy , final Method m , Object [ ] args ) throws Throwable { } } class StatelessSessionProxy extends LocalProxy implements InvocationHandler { protected String getJndiName ( ) { } protected Object getId ( ) { return jndiName ; } public final Object invoke ( final Object proxy , final Method m , Object [ ] args ) throws Throwable { } } }

Fix:
return cacheKey . getId ( ) ;
Buggy code:
public class WebURLCompressingCodingStrategy extends WebRequestCodingStrategy { protected CharSequence encode ( RequestCycle requestCycle , IListenerInterfaceRequestTarget requestTarget ) { final RequestListenerInterface rli = requestTarget . getRequestListenerInterface ( ) ; final AppendingStringBuffer url = new AppendingStringBuffer ( 64 ) ; url . append ( urlPrefix ( requestCycle ) ) ; url . append ( '?' ) ; url . append ( INTERFACE_PARAMETER_NAME ) ; url . append ( '=' ) ; final Component component = requestTarget . getTarget ( ) ; final Page page = component . getPage ( ) ; final PageMap pageMap = page . getPageMap ( ) ; if ( ! ( pageMap . isDefault ( ) ) ) { url . append ( pageMap . getName ( ) ) ; } url . append ( PATH_SEPARATOR ) ; String listenerName = rli . getName ( ) ; if ( ( page instanceof WebPage ) && ( ! ( "IResourceListener" . equals ( listenerName ) ) ) ) { url . append ( page . getId ( ) ) ; url . append ( PATH_SEPARATOR ) ; url . append ( ( ( WebPage ) ( page ) ) . getUrlCompressor ( ) . getUIDForComponentAndInterface ( component , listenerName ) ) ; listenerName = null ; } else { url . append ( component . getPath ( ) ) ; } url . append ( PATH_SEPARATOR ) ; final int versionNumber = component . getPage ( ) . getCurrentVersionNumber ( ) ; if ( ! ( rli . getRecordsPageVersion ( ) ) ) { url . append ( LATEST_VERSION ) ; } else if ( versionNumber > 0 ) { url . append ( versionNumber ) ; } url . append ( PATH_SEPARATOR ) ; if ( ( listenerName != null ) && ( ! ( INTERFACE . getName ( ) . equals ( listenerName ) ) ) ) { url . append ( listenerName ) ; } <START_BUG> return requestCycle . getResponse ( ) . encodeURL ( url ) ; <END_BUG> } }

Fix:
return requestCycle . getOriginalResponse ( ) . encodeURL ( url ) ;
Buggy code:
public class MappingJacksonHttpMessageConverter extends AbstractHttpMessageConverter < Object > { public static final Charset DEFAULT_CHARSET = Charset . forName ( "UTF-8" ) ; private ObjectMapper objectMapper = new ObjectMapper ( ) ; private boolean prefixJson = false ; private Boolean prettyPrint ; public MappingJacksonHttpMessageConverter ( ) { } public void setObjectMapper ( ObjectMapper objectMapper ) { } private void configurePrettyPrint ( ) { } public ObjectMapper getObjectMapper ( ) { } public void setPrefixJson ( boolean prefixJson ) { } public void setPrettyPrint ( boolean prettyPrint ) { } @ Override public boolean canRead ( Class < ? > clazz , MediaType mediaType ) { } @ Override public boolean canWrite ( Class < ? > clazz , MediaType mediaType ) { } @ Override protected boolean supports ( Class < ? > clazz ) { } @ Override protected Object readInternal ( Class < ? > clazz , HttpInputMessage inputMessage ) throws IOException , HttpMessageNotReadableException { JavaType javaType = getJavaType ( clazz ) ; try { return this . objectMapper . readValue ( inputMessage . getBody ( ) , javaType ) ; <START_BUG> } catch ( JsonProcessingException ex ) { <END_BUG> throw new HttpMessageNotReadableException ( ( "Could<seq2seq4repair_space>not<seq2seq4repair_space>read<seq2seq4repair_space>JSON:<seq2seq4repair_space>" + ( ex . getMessage ( ) ) ) , ex ) ; } } @ Override protected void writeInternal ( Object object , HttpOutputMessage outputMessage ) throws IOException , HttpMessageNotWritableException { } protected JavaType getJavaType ( Class < ? > clazz ) { } protected JsonEncoding getJsonEncoding ( MediaType contentType ) { } }

Fix:
} catch ( IOException ex ) {
Buggy code:
public final class RequestUtils { public static final int MAX_CACHE_DURATION = ( ( 60 * 60 ) * 24 ) * 365 ; public static void decodeParameters ( String queryString , PageParameters params ) { } public static String removeDoubleDots ( String path ) { } private RequestUtils ( ) { } public static String toAbsolutePath ( final String requestPath , String relativePagePath ) { } private static Charset getDefaultCharset ( ) { } private static Charset getCurrentCharset ( ) { } public static Charset getCharset ( HttpServletRequest request ) { } public static void disableCaching ( WebResponse response ) { Args . notNull ( response , "response" ) ; response . setDateHeader ( "Date" , System . currentTimeMillis ( ) ) ; response . setDateHeader ( "Expires" , 0 ) ; <START_BUG> response . setHeader ( "Pragma" , "no-cache" ) ; <END_BUG> response . setHeader ( "Cache-Control" , "no-cache" ) ; } public static void enableCaching ( WebResponse response , int duration , boolean cachePublic ) { } }

Fix:
response . setHeader ( "Pragma" , "no-cache,<seq2seq4repair_space>no-store" ) ;
Buggy code:
public class FilterModel { private EventTypeEntryContainer eventContainer = new EventTypeEntryContainer ( ) ; public void processNewLoggingEvent ( LoggingEvent event ) { eventContainer . addLevel ( event . getLevel ( ) ) ; eventContainer . addLogger ( event . getLoggerName ( ) ) ; eventContainer . addThread ( event . getThreadName ( ) ) ; eventContainer . addNDC ( event . getNDC ( ) ) ; <START_BUG> eventContainer . addMDCKeys ( event . getMDCKeySet ( ) ) ; <END_BUG> if ( event . locationInformationExists ( ) ) { LocationInfo info = event . getLocationInformation ( ) ; eventContainer . addClass ( info . getClassName ( ) ) ; eventContainer . addMethod ( info . getMethodName ( ) ) ; eventContainer . addFileName ( info . getFileName ( ) ) ; } } public EventTypeEntryContainer getContainer ( ) { } }

Fix:
eventContainer . addPropertyKeys ( event . getPropertyKeySet ( ) ) ;