nus-yam/ex-repair huggingface dataset:
Buggy code:
public class ServerOperationsResolverHandler implements OperationStepHandler { public static final String OPERATION_NAME = "server-operation-resolver" ; private final String localHostName ; private final ServerOperationResolver resolver ; private final ParsedOp parsedOp ; private final PathAddress originalAddress ; private final ImmutableManagementResourceRegistration originalRegistration ; private final ModelNode localResponse ; private final boolean recordResponse ; ServerOperationsResolverHandler ( final String localHostName , final ServerOperationResolver resolver , final ParsedOp parsedOp , final PathAddress originalAddress , final ImmutableManagementResourceRegistration originalRegistration , final ModelNode response , final boolean recordResponse ) { } @ Override public void execute ( OperationContext context , ModelNode operation ) throws OperationFailedException { } private Map < Set < ServerIdentity > , ModelNode > getServerOperations ( ModelNode domainOp , PathAddress domainOpAddress , ModelNode domainModel , ModelNode hostModel ) { Map < Set < ServerIdentity > , ModelNode > result = null ; final PathAddress relativeAddress = domainOpAddress . subAddress ( originalAddress . size ( ) ) ; Set < OperationEntry . Flag > flags = originalRegistration . getOperationFlags ( relativeAddress , domainOp . require ( OP ) . asString ( ) ) ; <START_BUG> if ( flags . contains ( READ_ONLY ) ) { <END_BUG> result = Collections . emptyMap ( ) ; } if ( result == null ) { result = resolver . getServerOperations ( domainOp , domainOpAddress , domainModel , hostModel ) ; } return result ; } private void createOverallResult ( Map < Set < ServerIdentity > , ModelNode > serverOps , final ModelNode localResult , final ModelNode overallResult ) { } }

Fix:
if ( ( flags . contains ( READ_ONLY ) ) && ( ! ( flags . contains ( DOMAIN_PUSH_TO_SERVERS ) ) ) ) {
Buggy code:
public class JoinModel { private final Connection conn ; private final PreparedStatement newJoin ; private final PreparedStatement getJoin ; private final PreparedStatement incrementJoin ; private final PreparedStatement readJoins ; public JoinModel ( Connection conn ) throws SQLException { } private void buildTable ( ) throws SQLException { } public int getKarma ( String nick ) { } private void newJoin ( String nick ) throws SQLException { } public int incrementJoin ( String nick ) throws SQLException { } public Map < String , Integer > getAllJoins ( ) { TreeMap < String , Integer > joins = new TreeMap < String , Integer > ( ) ; try { ResultSet rs = readJoins . executeQuery ( ) ; while ( rs . next ( ) ) { <START_BUG> joins . put ( rs . getString ( 0 ) , rs . getInt ( 1 ) ) ; <END_BUG> } rs . close ( ) ; } catch ( SQLException ex ) { ex . printStackTrace ( ) ; } return joins ; } }

Fix:
joins . put ( rs . getString ( 1 ) , rs . getInt ( 2 ) ) ;
Buggy code:
public class HierarchyP4Config implements P4Config { private final P4Config [ ] parents ; public HierarchyP4Config ( P4Config ... parents ) { } @ Override public boolean hasIsAutoOfflineSet ( ) { } @ Override public boolean isAutoOffline ( ) { } @ Override public void reload ( ) { } @ Override public boolean hasPortSet ( ) { } @ Override public String getPort ( ) { } @ Override public boolean hasProtocolSet ( ) { } @ Override public Protocol getProtocol ( ) { } @ Override public boolean hasClientnameSet ( ) { } @ Override public String getClientname ( ) { } @ Override public boolean hasUsernameSet ( ) { } @ Override public String getUsername ( ) { } @ NotNull @ Override public ConnectionMethod getConnectionMethod ( ) { } @ Override public String getPassword ( ) { } @ Override public String getAuthTicketPath ( ) { } @ Override public boolean hasTrustTicketPathSet ( ) { } @ Override public String getTrustTicketPath ( ) { } @ Override public boolean hasServerFingerprintSet ( ) { } @ Nullable @ Override public String getServerFingerprint ( ) { for ( P4Config config : parents ) { if ( config . hasServerFingerprintSet ( ) ) { <START_BUG> return getServerFingerprint ( ) ; <END_BUG> } } return null ; } @ Override public String getConfigFile ( ) { } @ Override public boolean isPasswordStoredLocally ( ) { } }

Fix:
return config . getServerFingerprint ( ) ;
Buggy code:
public class JGroupsSubsystemAdd extends AbstractAddStepHandler { public static final JGroupsSubsystemAdd INSTANCE = new JGroupsSubsystemAdd ( ) ; static ModelNode createOperation ( ModelNode address , ModelNode existing ) throws OperationFailedException { } private static void populate ( ModelNode source , ModelNode target ) throws OperationFailedException { } protected void populateModel ( ModelNode operation , ModelNode model ) throws OperationFailedException { } protected void performRuntime ( OperationContext context , ModelNode operation , ModelNode model , ServiceVerificationHandler verificationHandler , List < ServiceController < ? > > newControllers ) throws OperationFailedException { JGroupsLogger . ROOT_LOGGER . activatingSubsystem ( ) ; ServiceTarget target = context . getServiceTarget ( ) ; newControllers . add ( target . addService ( SERVICE_NAME , new ProtocolDefaultsService ( ) ) . setInitialMode ( ON_DEMAND ) . install ( ) ) ; <START_BUG> String stack = DEFAULT_STACK . resolveModelAttribute ( context , model ) . asString ( ) ; <END_BUG> InjectedValue < ChannelFactory > factory = new InjectedValue < ChannelFactory > ( ) ; ValueService < ChannelFactory > service = new ValueService < ChannelFactory > ( factory ) ; newControllers . add ( target . addService ( ChannelFactoryService . getServiceName ( null ) , service ) . addDependency ( ChannelFactoryService . getServiceName ( stack ) , ChannelFactory . class , factory ) . setInitialMode ( ON_DEMAND ) . install ( ) ) ; } protected boolean requiresRuntimeVerification ( ) { } }

Fix:
final String stack = DEFAULT_STACK . resolveModelAttribute ( context , model ) . asString ( ) ;
Buggy code:
public abstract class AbstractFlashMapManager implements FlashMapManager { protected final Log logger = LogFactory . getLog ( getClass ( ) ) ; private int flashMapTimeout = 180 ; private UrlPathHelper urlPathHelper = new UrlPathHelper ( ) ; private static final Object writeLock = new Object ( ) ; public void setFlashMapTimeout ( int flashMapTimeout ) { } public int getFlashMapTimeout ( ) { } public void setUrlPathHelper ( UrlPathHelper urlPathHelper ) { } public UrlPathHelper getUrlPathHelper ( ) { } @ Override public final FlashMap retrieveAndUpdate ( HttpServletRequest request , HttpServletResponse response ) { } protected abstract List < FlashMap > retrieveFlashMaps ( HttpServletRequest request ) { } private List < FlashMap > getExpiredFlashMaps ( List < FlashMap > allMaps ) { } private FlashMap getMatchingFlashMap ( List < FlashMap > allMaps , HttpServletRequest request ) { } protected boolean isFlashMapForRequest ( FlashMap flashMap , HttpServletRequest request ) { } @ Override public final void saveOutputFlashMap ( FlashMap flashMap , HttpServletRequest request , HttpServletResponse response ) { } private String decodeAndNormalizePath ( String path , HttpServletRequest request ) { } private void decodeParameters ( MultiValueMap < String , String > params , HttpServletRequest request ) { for ( String name : new ArrayList < String > ( params . keySet ( ) ) ) { for ( String value : new ArrayList < String > ( params . remove ( name ) ) ) { <START_BUG> params . add ( name , this . urlPathHelper . decodeRequestString ( request , value ) ) ; <END_BUG> } } } protected abstract void updateFlashMaps ( List < FlashMap > flashMaps , HttpServletRequest request , HttpServletResponse response ) { } }

Fix:
params . add ( this . urlPathHelper . decodeRequestString ( request , name ) , this . urlPathHelper . decodeRequestString ( request , value ) ) ;
Buggy code:
public class CurrentUser { private final LoginService loginService ; private final ApplicationConstants constants ; private final ApplicationMessages messages ; private UserDto user ; @ Inject public CurrentUser ( LoginService loginService , ApplicationConstants constants , ApplicationMessages messages ) { } public UserDto getUser ( ) { } public boolean isLoggedIn ( ) { } public boolean isAdmin ( ) { } public boolean isPolice ( ) { } public void login ( UserDto user ) { <START_BUG> loginService . login ( CurrentUser . createBasicAuthHeader ( user . getName ( ) , user . getPassword ( ) ) , new org . fusesource . restygwt . client . MethodCallback < UserDto > ( ) { <END_BUG> @ Override public void onFailure ( Method method , Throwable exception ) { NotificationUtils . error ( messages . logInError ( exception . getLocalizedMessage ( ) ) ) ; } @ Override public void onSuccess ( Method method , UserDto response ) { CurrentUser . this . user = response ; NotificationUtils . info ( constants . logInSuccessful ( ) ) ; } } ) ; } private static String createBasicAuthHeader ( String userName , String password ) { } }

Fix:
loginService . login ( CurrentUser . createBasicAuthHeader ( user . getUsername ( ) , user . getPassword ( ) ) , new org . fusesource . restygwt . client . MethodCallback < UserDto > ( ) {
Buggy code:
public class DotNetSuspendContext extends XSuspendContext { private final DotNetDebugContext myDebuggerContext ; private final ThreadMirror myThreadMirror ; private XExecutionStack myActiveExecutionStack ; public DotNetSuspendContext ( @ NotNull DotNetDebugContext debuggerContext , @ Nullable ThreadMirror threadMirror ) { } @ Override public void computeExecutionStacks ( XExecutionStackContainer container ) { List < ThreadMirror > threadMirrors = myDebuggerContext . getVirtualMachine ( ) . allThreads ( ) ; List < XExecutionStack > executionStacks = new ArrayList < XExecutionStack > ( ) ; for ( ThreadMirror threadMirror : threadMirrors ) { <START_BUG> if ( ( ( myThreadMirror ) != null ) && ( ( threadMirror . id ( ) ) == ( myThreadMirror . id ( ) ) ) ) { <END_BUG> executionStacks . add ( myActiveExecutionStack ) ; } else { executionStacks . add ( new DotNetExecutionStack ( myDebuggerContext , threadMirror ) ) ; } } if ( ! ( executionStacks . contains ( myActiveExecutionStack ) ) ) { executionStacks . add ( myActiveExecutionStack ) ; } container . addExecutionStack ( executionStacks , true ) ; } @ Nullable @ Override public XExecutionStack getActiveExecutionStack ( ) { } }

Fix:
if ( ( ( myThreadMirror ) != null ) && ( ( threadMirror . systemThreadId ( ) ) == ( myThreadMirror . systemThreadId ( ) ) ) ) {
Buggy code:
public class GenericTestBeanCustomizer extends JPanel implements SharedCustomizer { private static final Logger log = LoggingManager . getLoggerForClass ( ) ; public static final String GROUP = "group" ; public static final String ORDER = "order" ; public static final String TAGS = "tags" ; public static final String NOT_UNDEFINED = "notUndefined" ; public static final String NOT_EXPRESSION = "notExpression" ; public static final String NOT_OTHER = "notOther" ; public static final String DEFAULT = "default" ; public static final String RESOURCE_BUNDLE = "resourceBundle" ; public static final String ORDER ( String group ) { } public static final String DEFAULT_GROUP = "" ; private int scrollerCount = 0 ; private transient BeanInfo beanInfo ; private transient PropertyDescriptor [ ] descriptors ; private transient PropertyEditor [ ] editors ; private MessageFormat propertyFieldLabelMessage ; private MessageFormat propertyToolTipMessage ; private Map propertyMap ; public GenericTestBeanCustomizer ( ) { } GenericTestBeanCustomizer ( BeanInfo beanInfo ) { } private WrapperEditor createWrapperEditor ( PropertyEditor typeEditor , PropertyDescriptor descriptor ) { } private void setEditorValue ( int i , Object value ) throws IllegalArgumentException { } public void setObject ( Object map ) { } private void init ( ) { } private JLabel createLabel ( PropertyDescriptor desc ) { } private String group ( PropertyDescriptor d ) { } private String groupDisplayName ( String group ) { } private class PropertyComparator implements Serializable , Comparator { public int compare ( Object o1 , Object o2 ) { } private int compare ( PropertyDescriptor d1 , PropertyDescriptor d2 ) { } private Integer groupOrder ( String group ) { } private Integer propertyOrder ( PropertyDescriptor d ) { } } void saveGuiFields ( ) { } void clearGuiFields ( ) { for ( int i = 0 ; i < ( editors . length ) ; i ++ ) { PropertyEditor propertyEditor = editors [ i ] ; if ( propertyEditor != null ) { try { if ( propertyEditor instanceof WrapperEditor ) { WrapperEditor we = ( ( WrapperEditor ) ( propertyEditor ) ) ; String [ ] tags = we . getTags ( ) ; <START_BUG> if ( tags != null ) { <END_BUG> we . setAsText ( tags [ 0 ] ) ; } else { we . setValue ( "" ) ; } } else if ( propertyEditor instanceof ComboStringEditor ) { ComboStringEditor cse = ( ( ComboStringEditor ) ( propertyEditor ) ) ; cse . setAsText ( cse . getInitialEditValue ( ) ) ; } else { propertyEditor . setAsText ( "" ) ; } } catch ( IllegalArgumentException ex ) { GenericTestBeanCustomizer . log . error ( ( "Failed<seq2seq4repair_space>to<seq2seq4repair_space>set<seq2seq4repair_space>field<seq2seq4repair_space>" + ( descriptors [ i ] . getName ( ) ) ) , ex ) ; } } } } }

Fix:
if ( ( tags != null ) && ( ( tags . length ) > 0 ) ) {
Buggy code:
public class TESTME { public static void main ( String [ ] args ) throws Exception { <START_BUG> Directory dir = new MMapDirectory ( new File ( "//Users//VictorTey//Documents//Projects//panFMP-1.1.0//repository//lucene-store//igsn" ) ) ; <END_BUG> IndexReader ir = IndexReader . open ( dir ) ; Term term = new Term ( "curators" , "curator<seq2seq4repair_space>text<seq2seq4repair_space>1" ) ; TermEnum termEnum = ir . terms ( ) ; System . out . println ( termEnum . term ( ) ) ; System . out . println ( termEnum . docFreq ( ) ) ; termEnum . next ( ) ; System . out . println ( termEnum . term ( ) ) ; System . out . println ( termEnum . docFreq ( ) ) ; } }

Fix:
Directory dir = new MMapDirectory ( new File ( "C:\\vtest\\panFMP-1.1.0-bin\\panFMP-1.1.0\\repository\\lucene-store\\igsn" ) ) ;
Buggy code:
public class CalcCircuitType implements ICalcCircuitType { @ Override public Integer Execute ( CalcCircuitTypeCommand param ) throws Exception { StartMode startmode = param . getStartmode ( ) ; Class < ? > keyType = param . getKeyType ( ) ; Boolean hasGuard = param . getHasGuard ( ) ; Boolean isBidirect = param . getIsBidirect ( ) ; Boolean hasCap = param . getHasCap ( ) ; if ( ( ( ( ( startmode == ( StartMode . DOL ) ) & ( keyType == ( Tmb . class ) ) ) & ( ! hasGuard ) ) & ( ! hasCap ) ) & ( ! isBidirect ) ) { return drawable . doltmb ; } if ( ( ( ( ( startmode == ( StartMode . DOL ) ) & ( keyType == ( Tmb . class ) ) ) & ( ! hasGuard ) ) & ( ! hasCap ) ) & isBidirect ) { return drawable . doltmbbidirect ; } if ( ( ( ( ( startmode == ( StartMode . DOL ) ) & ( keyType == ( Tmb . class ) ) ) & hasGuard ) & ( ! hasCap ) ) & ( ! isBidirect ) ) { return drawable . doltmbbimetal ; } if ( ( ( ( ( startmode == ( StartMode . DOL ) ) & ( keyType == ( Tmb . class ) ) ) & hasGuard ) & ( ! hasCap ) ) & isBidirect ) { return drawable . doltmbbimetalbidirect ; } if ( ( ( ( ( startmode == ( StartMode . DOL ) ) & ( keyType == ( Mccb . class ) ) ) & hasGuard ) & ( ! hasCap ) ) & ( ! isBidirect ) ) { return drawable . dolmccbbimetal ; } if ( ( ( ( ( startmode == ( StartMode . DOL ) ) & ( keyType == ( Mccb . class ) ) ) & hasGuard ) & ( ! hasCap ) ) & isBidirect ) { <START_BUG> return drawable . dolmccbbimetal ; <END_BUG> } if ( ( ( ( ( startmode == ( StartMode . SD ) ) & ( keyType == ( Tmb . class ) ) ) & ( ! hasGuard ) ) & ( ! hasCap ) ) & ( ! isBidirect ) ) { return drawable . sdtmb ; } if ( ( ( ( ( startmode == ( StartMode . SD ) ) & ( keyType == ( Tmb . class ) ) ) & hasGuard ) & ( ! hasCap ) ) & ( ! isBidirect ) ) { return drawable . sdtmbbimetal ; } if ( ( ( ( ( startmode == ( StartMode . SD ) ) & ( keyType == ( Mccb . class ) ) ) & hasGuard ) & ( ! hasCap ) ) & ( ! isBidirect ) ) { return drawable . sdbimetalmccb ; } if ( ( ( ( ( startmode == ( StartMode . SSD ) ) & ( keyType == ( Tmb . class ) ) ) & ( ! hasGuard ) ) & ( ! hasCap ) ) & ( ! isBidirect ) ) { return drawable . ssdtmb ; } if ( ( ( ( ( startmode == ( StartMode . SSD ) ) & ( keyType == ( Mccb . class ) ) ) & ( ! hasGuard ) ) & ( ! hasCap ) ) & ( ! isBidirect ) ) { return drawable . ssdmccb ; } if ( ( ( ( ( startmode == ( StartMode . VSD ) ) & ( keyType == ( Tmb . class ) ) ) & ( ! hasGuard ) ) & ( ! hasCap ) ) & ( ! isBidirect ) ) { return drawable . vsdtmb ; } if ( ( ( ( ( startmode == ( StartMode . VSD ) ) & ( keyType == ( Mccb . class ) ) ) & ( ! hasGuard ) ) & ( ! hasCap ) ) & ( ! isBidirect ) ) { return drawable . vsdmccb ; } return 0 ; } }

Fix:
return drawable . dolmccbbimetalbidirect ;
Buggy code:
public class ActionExecSilk extends UMLAction implements PluggableMenu { public static ActionExecSilk SINGLETON = new ActionExecSilk ( ) ; private static JMenuItem _menuItem = null ; public static final String separator = "//" ; private static final String SILK_CLASS = "silk.Scheme" ; public ActionExecSilk ( ) { } public void actionPerformed ( ActionEvent event ) { } public boolean initializeModule ( ) { } public Object [ ] buildContext ( JMenuItem a , String b ) { } public void setModuleEnabled ( boolean enabled ) { } public boolean isModuleEnabled ( ) { } public Vector getModulePopUpActions ( Vector v , Object o ) { } public boolean shutdownModule ( ) { } public String getModuleName ( ) { } public String getModuleDescription ( ) { } public String getModuleAuthor ( ) { } public String getModuleVersion ( ) { } public String getModuleKey ( ) { } public boolean inContext ( Object [ ] o ) { if ( ( o . length ) < 2 ) return false ; <START_BUG> if ( ( ( o [ 0 ] ) instanceof JMenuItem ) && ( "Tools" . equals ( o [ 1 ] ) ) ) { <END_BUG> return true ; } return false ; } public JMenuItem getMenuItem ( JMenuItem mi , String s ) { } public JMenuItem getMenuItem ( Object [ ] context ) { } }

Fix:
if ( ( ( o [ 0 ] ) instanceof JMenuItem ) && ( KEY_TOOLS . equals ( o [ 1 ] ) ) ) {
Buggy code:
public class PredicatedQueue < E > extends PredicatedCollection < E > implements Queue < E > { private static final long serialVersionUID = 2307609000539943581L ; public static < E > PredicatedQueue < E > predicatedQueue ( final Queue < E > Queue , final Predicate < ? super E > predicate ) { } protected PredicatedQueue ( final Queue < E > queue , final Predicate < ? super E > predicate ) { } @ Override protected Queue < E > decorated ( ) { } <START_BUG> public boolean offer ( E object ) { <END_BUG> PredicatedQueue . validate ( object ) ; return decorated ( ) . offer ( object ) ; } public E poll ( ) { } public E peek ( ) { } public E element ( ) { } public E remove ( ) { } }

Fix:
public boolean offer ( final E object ) {
Buggy code:
public class ServerInModuleStartupTestCase { static ServiceContainer container ; @ BeforeClass public static void startServer ( ) throws Exception { ServerEnvironment serverEnvironment = Main . determineEnvironment ( new String [ 0 ] , new Properties ( System . getProperties ( ) ) , System . getenv ( ) ) ; Assert . assertNotNull ( serverEnvironment ) ; final Bootstrap bootstrap = Factory . newInstance ( ) ; final Bootstrap . Configuration configuration = new Bootstrap . Configuration ( ) ; configuration . setServerEnvironment ( serverEnvironment ) ; <START_BUG> configuration . setModuleLoader ( Module . getSystemModuleLoader ( ) ) ; <END_BUG> configuration . setPortOffset ( 0 ) ; ServerInModuleStartupTestCase . container = bootstrap . startup ( configuration , Collections . < ServiceActivator > emptyList ( ) ) . get ( ) ; Assert . assertNotNull ( ServerInModuleStartupTestCase . container ) ; } @ AfterClass public static void testServerStartupAndShutDown ( ) throws Exception { } @ Test public void testXmlConfigDemo ( ) throws Exception { } @ Test public void testDescriptionDemo ( ) throws Exception { } }

Fix:
configuration . setModuleLoader ( Module . getBootModuleLoader ( ) ) ;
Buggy code:
public class ImportServiceIT { private static final Logger logger = LoggerFactory . getLogger ( ImportServiceIT . class ) ; private static CassandraResource cassandraResource = CassandraResource . newWithAvailablePorts ( ) ; private static UserInfo adminUser ; private static OrganizationInfo organization ; private static UUID applicationId ; QueueListener listener ; final String bucketName = ( System . getProperty ( "bucketName" ) ) + ( RandomStringUtils . randomAlphanumeric ( 10 ) . toLowerCase ( ) ) ; @ Rule public ClearShiroSubject clearShiroSubject = new ClearShiroSubject ( ) ; @ ClassRule public static final ServiceITSetup setup = new org . apache . usergrid . ServiceITSetupImpl ( ImportServiceIT . cassandraResource , new ElasticSearchResource ( ) ) ; @ BeforeClass public static void setup ( ) throws Exception { } @ Before public void before ( ) { } @ After public void after ( ) throws Exception { } @ Test @ Ignore ( "Import<seq2seq4repair_space>organization<seq2seq4repair_space>not<seq2seq4repair_space>supported" ) public void testImportApplication ( ) throws Exception { } @ Test @ Ignore ( "Import<seq2seq4repair_space>organization<seq2seq4repair_space>not<seq2seq4repair_space>supported" ) public void testImportOrganization ( ) throws Exception { } <START_BUG> @ Test <END_BUG> public void testScheduleJobWithNullConfig ( ) throws Exception { HashMap < String , Object > payload = null ; ImportService importService = ImportServiceIT . setup . getImportService ( ) ; final Import importEntity = importService . schedule ( null , payload ) ; assertNull ( importEntity ) ; } @ Test public void testGetStateWithNullUUID ( ) throws Exception { } @ Test public void testGetStateWithFakeUUID ( ) throws Exception { } @ Test public void testErrorMessageWithNullState ( ) throws Exception { } @ Test public void testErrorMessageWithFakeUUID ( ) throws Exception { } @ Test @ Ignore ( "Import<seq2seq4repair_space>organization<seq2seq4repair_space>not<seq2seq4repair_space>supported" ) public void testDoImportWithNullOrganizationID ( ) throws Exception { } @ Test @ Ignore ( "Import<seq2seq4repair_space>organization<seq2seq4repair_space>not<seq2seq4repair_space>supported" ) public void testDoImportWithFakeOrganizationID ( ) throws Exception { } @ Test @ Ignore ( "Import<seq2seq4repair_space>application<seq2seq4repair_space>not<seq2seq4repair_space>supported" ) public void testDoImportWithFakeApplicationID ( ) throws Exception { } @ Test @ Ignore ( "Import<seq2seq4repair_space>application<seq2seq4repair_space>not<seq2seq4repair_space>supported" ) public void testDoImportCollectionWithFakeApplicationID ( ) throws Exception { } public HashMap < String , Object > payloadBuilder ( ) { } public JobData jobImportDataCreator ( HashMap < String , Object > payload , UUID importUUID , S3Import s3Import ) { } public JobData jobExportDataCreator ( HashMap < String , Object > payload , UUID exportUUID , S3Export s3Export ) { } public void deleteBucket ( ) { } void createAndSetup2ndApplication ( ) throws Exception { } }

Fix:
@ Test ( expected = NullPointerException . class )
Buggy code:
@ Service public class UserServiceImpl implements UserService { @ Autowired private UserMapper userMapper ; @ Autowired private RoleMapper roleMapper ; public UserMapper getUserMapper ( ) { } public void setUserMapper ( UserMapper userMapper ) { } public RoleMapper getRoleMapper ( ) { } public void setRoleMapper ( RoleMapper roleMapper ) { } @ Override public UserTransfer getUserByUsername ( String username ) { } @ Override public Collection < UserTransfer > getAllUsers ( ) { } @ Override public Collection < UserTransfer > getUserByCategory ( String category ) { Collection < User > users = userMapper . findAll ( ) ; Collection < UserTransfer > userTransfers = new ArrayList < UserTransfer > ( ) ; Iterator < User > iter = users . iterator ( ) ; while ( iter . hasNext ( ) ) { User user = iter . next ( ) ; Collection < Role > roles = roleMapper . findByUserId ( user . getId ( ) ) ; UserTransfer userTransfer = new UserTransfer ( ) ; userTransfer . setId ( user . getId ( ) ) ; userTransfer . setUsername ( user . getUsername ( ) ) ; userTransfer . setRoles ( roles ) ; userTransfer . setImageUrl ( user . getImageUrl ( ) ) ; boolean flag = false ; if ( category . equals ( "业委会" ) ) { for ( Role role : roles ) { if ( role . getName ( ) . endsWith ( "长" ) ) { flag = true ; break ; } } if ( flag ) userTransfers . add ( userTransfer ) ; } else if ( category . equals ( "居委会" ) ) { for ( Role role : roles ) { <START_BUG> if ( ( ( role . getName ( ) . endsWith ( "主任" ) ) || ( role . getName ( ) . endsWith ( "书记" ) ) ) || ( role . getName ( ) . endsWith ( "员" ) ) ) { <END_BUG> flag = true ; break ; } } if ( flag ) userTransfers . add ( userTransfer ) ; } else { for ( Role role : roles ) { if ( role . getName ( ) . endsWith ( "保安" ) ) { flag = true ; break ; } } if ( flag ) userTransfers . add ( userTransfer ) ; } } return userTransfers ; } @ Override public void updateUser ( UserTransfer userTransfer ) { } @ Override public UserTransfer authenticateUser ( String username , String password ) { } }

Fix:
if ( ( ( ( role . getName ( ) . endsWith ( "主任" ) ) || ( role . getName ( ) . endsWith ( "书记" ) ) ) || ( role . getName ( ) . endsWith ( "员" ) ) ) || ( role . getName ( ) . endsWith ( "民警" ) ) ) {
Buggy code:
public class LoginConfigGui extends AbstractConfigGui { private JTextField username = new JTextField ( 15 ) ; private JPasswordField password = new JPasswordField ( 15 ) ; private boolean displayName = true ; public LoginConfigGui ( ) { } public LoginConfigGui ( boolean displayName ) { } public String getStaticLabel ( ) { <START_BUG> return JMeterUtils . getResString ( "Login<seq2seq4repair_space>Config<seq2seq4repair_space>Element" ) ; <END_BUG> } public void configure ( TestElement element ) { } public TestElement createTestElement ( ) { } public void modifyTestElement ( TestElement element ) { } private void init ( ) { } private JPanel createUsernamePanel ( ) { } private JPanel createPasswordPanel ( ) { } }

Fix:
return JMeterUtils . getResString ( "login_config_element" ) ;
Buggy code:
public class AjaxRequestTargetTest extends WicketTestCase { public void testHeaderContribution1 ( ) throws IOException { } public void testHeaderContribution2 ( ) throws IOException { } public void testHeaderContribution3 ( ) throws IOException { } private < C extends Component > void executeHeaderTest ( final Class < C > componentClass ) throws IOException { } private < C extends Component > void executeHeaderTest ( final Class < C > componentClass , String expectedFile ) throws IOException { final MockPageWithLinkAndComponent page = new MockPageWithLinkAndComponent ( ) ; page . add ( new org . apache . wicket . markup . html . WebComponent ( MockPageWithLinkAndComponent . COMPONENT_ID ) . setOutputMarkupId ( true ) ) ; page . add ( new org . apache . wicket . ajax . markup . html . AjaxLink < Void > ( MockPageWithLinkAndComponent . LINK_ID ) { private static final long serialVersionUID = 1L ; @ Override public void onClick ( AjaxRequestTarget target ) { try { Constructor < ? extends Component > con = componentClass . getConstructor ( new Class [ ] { String . class } ) ; Component comp = con . newInstance ( new Object [ ] { MockPageWithLinkAndComponent . COMPONENT_ID } ) ; page . replace ( comp ) ; comp . setOutputMarkupId ( true ) ; <START_BUG> target . addComponent ( comp ) ; <END_BUG> } catch ( Exception e ) { e . printStackTrace ( ) ; } } } ) ; tester . startPage ( new ITestPageSource ( ) { private static final long serialVersionUID = 1L ; public Page getTestPage ( ) { return page ; } } ) ; tester . debugComponentTrees ( ) ; tester . clickLink ( LINK_ID ) ; String document = tester . getLastResponseAsString ( ) ; Pattern pat = Pattern . compile ( ".*<header-contribution>(.*?)<//header-contribution>.*" , Pattern . DOTALL ) ; Matcher mat = pat . matcher ( document ) ; String headerContribution = null ; if ( mat . matches ( ) ) { headerContribution = mat . group ( 1 ) ; } if ( expectedFile == null ) { assertNull ( ( ( "There<seq2seq4repair_space>was<seq2seq4repair_space>a<seq2seq4repair_space>header<seq2seq4repair_space>contribution<seq2seq4repair_space>on<seq2seq4repair_space>the<seq2seq4repair_space>response:<seq2seq4repair_space><" + headerContribution ) + ">" ) , headerContribution ) ; } else { DiffUtil . validatePage ( headerContribution , getClass ( ) , expectedFile , true ) ; } } public void testRenderMyPage ( ) { } public void testVarargsAddComponent ( ) { } }

Fix:
target . add ( comp ) ;
Buggy code:
public class DateDV extends DateTimeDV { public Object getActualValue ( String content ) throws InvalidDatatypeValueException { try { return parse ( content , null ) ; } catch ( Exception ex ) { <START_BUG> throw new InvalidDatatypeValueException ( "not<seq2seq4repair_space>a<seq2seq4repair_space>valid<seq2seq4repair_space>date" ) ; <END_BUG> } } protected int [ ] parse ( String str , int [ ] date ) throws SchemaDateTimeException { } }

Fix:
throw new InvalidDatatypeValueException ( "cvc-datatype-valid.1.2.1" , new Object [ ] { content , "date" } ) ;
Buggy code:
public class TestSequencedHashMap extends TestMap { protected SequencedHashMap labRat ; public TestSequencedHashMap ( String name ) { } public static Test suite ( ) { <START_BUG> return new TestSuite ( TestSequencedHashMap . class ) ; <END_BUG> } public int getCompatibilityVersion ( ) { } public static void main ( String [ ] [ ] args ) { } public void setUp ( ) throws Exception { } public Map makeEmptyMap ( ) { } protected Object [ ] getKeys ( ) { } protected Object [ ] getValues ( ) { } public void testSequenceMap ( ) throws Throwable { } public void testYoungest ( ) { } public void testYoungestReplaceNullWithValue ( ) { } public void testYoungestReplaceValueWithNull ( ) { } public void testFullMapSerialization ( ) throws IOException , ClassNotFoundException { } protected void tearDown ( ) { } }

Fix:
return BulkTest . makeSuite ( TestSequencedHashMap . class ) ;
Buggy code:
public class GenericQuery { private final BaseDatabaseConnection dbConnection ; private Class < ? extends ModelWithId > mainModel ; private List < JoinCondition > joinConditions ; private List < WhereConstraint > whereConstraints ; private Set < OrderCriterion > orderCriteria ; private Set < ModelField > selectedIModelFields ; private Optional < LimitCriterion > limitCondition ; private GenericQuery ( BaseDatabaseConnection dbConnection ) { } public static GenericQuery create ( BaseDatabaseConnection dbConnection ) { } public GenericQueryBuilder from ( Class < ? extends ModelWithId > model ) { } List < WhereConstraint > getWhereConstraints ( ) { } Set < ModelField > getSelectedIModelFields ( ) { } void addJoinCondition ( JoinCondition joinCondition ) { } void addWhereCondition ( WhereConstraint whereConstraint ) { } void addOrderCondition ( OrderCriterion orderCriterion ) { } void addLimitCondition ( LimitCriterion lmtCondition ) { } void addSelectedModelField ( ModelField modelField ) { } boolean isOrderedQuery ( ) { } String getSqlStatement ( ) { } private String getSelectClause ( ) { StringBuilder clause = new StringBuilder ( "SELECT<seq2seq4repair_space>" ) ; if ( selectedIModelFields . isEmpty ( ) ) { clause . append ( "*" ) ; } else { Iterator < ModelField > it = selectedIModelFields . iterator ( ) ; while ( it . hasNext ( ) ) { clause . append ( it . next ( ) . getSqlKeyword ( ) ) ; if ( it . hasNext ( ) ) { clause . append ( ",<seq2seq4repair_space>" ) ; } } } <START_BUG> String tableName = Utility . getTableNameFromModel ( mainModel ) ; <END_BUG> return clause . append ( "<seq2seq4repair_space>FROM<seq2seq4repair_space>" ) . append ( tableName ) . append ( "<seq2seq4repair_space>" ) . toString ( ) ; } private String getJoinClause ( ) { } private String getWhereClause ( ) { } private String getOrderClause ( ) { } private String getLimitClause ( ) { } private < T extends QueryCondition > String getClause ( Collection < T > conditions , String initialKeyWord , String separator ) { } }

Fix:
String tableName = Utility . getTableName ( mainModel ) ;
Buggy code:
public class JDBCMessageStore extends AbstractMessageStore { private JDBCConfiguration jdbcConfiguration ; private static final Log logger = LogFactory . getLog ( JDBCMessageStore . class . getName ( ) ) ; private final ReentrantLock removeLock = new ReentrantLock ( ) ; private final ReentrantLock cleanUpOfferLock = new ReentrantLock ( ) ; private final AtomicBoolean cleaningFlag = new AtomicBoolean ( false ) ; @ Override public void init ( SynapseEnvironment synapseEnvironment ) { } @ Override public MessageProducer getProducer ( ) { } @ Override public MessageConsumer getConsumer ( ) { } @ Override public void setParameters ( Map < String , Object > parameters ) { } private MessageContext processResultingStatement ( Statement stmt ) throws SynapseException { } private boolean processNonResultingStatement ( Statement stmnt ) throws SynapseException { } @ Override public void destroy ( ) { } public boolean store ( MessageContext messageContext ) throws SynapseException { } public MessageContext peek ( ) throws SynapseException { } @ Override public MessageContext remove ( ) throws NoSuchElementException { } @ Override public MessageContext remove ( String msgId ) throws SynapseException { } @ Override public void clear ( ) { } @ Override public MessageContext get ( int position ) { if ( position < 0 ) { throw new IllegalArgumentException ( ( ( "Index:" + position ) + "<seq2seq4repair_space>out<seq2seq4repair_space>of<seq2seq4repair_space>table<seq2seq4repair_space>bound" ) ) ; } <START_BUG> if ( ! ( "com.mysql.jdbc.Driver" . equals ( this . getParameters ( ) . get ( JDBCMessageStoreConstants . JDBC_CONNECTION_DRIVER ) ) ) ) { <END_BUG> throw new UnsupportedOperationException ( "Only<seq2seq4repair_space>support<seq2seq4repair_space>in<seq2seq4repair_space>MYSQL" ) ; } Statement stmt = new Statement ( ( ( "SELECT<seq2seq4repair_space>message<seq2seq4repair_space>FROM<seq2seq4repair_space>" + ( jdbcConfiguration . getTableName ( ) ) ) + "<seq2seq4repair_space>ORDER<seq2seq4repair_space>BY<seq2seq4repair_space>indexId<seq2seq4repair_space>ASC<seq2seq4repair_space>LIMIT<seq2seq4repair_space>?,1<seq2seq4repair_space>" ) ) ; stmt . addParameter ( position ) ; return processResultingStatement ( stmt ) ; } @ Override public List < MessageContext > getAll ( ) { } @ Override public MessageContext get ( String msgId ) { } @ Override public int size ( ) { } private String getNameString ( ) { } private void close ( Connection con , PreparedStatement ps , ResultSet rs ) { } }

Fix:
if ( ( ( this . getParameters ( ) . get ( JDBCMessageStoreConstants . JDBC_CONNECTION_DRIVER ) ) != null ) && ( ! ( "com.mysql.jdbc.Driver" . equals ( this . getParameters ( ) . get ( JDBCMessageStoreConstants . JDBC_CONNECTION_DRIVER ) ) ) ) ) {
Buggy code:
public class StringLiteralConcetanation extends StringLiteral { private static final int INITIAL_SIZE = 5 ; public StringLiteral [ ] literals ; public int counter ; public StringLiteralConcetanation ( StringLiteral str1 , StringLiteral str2 ) { } public StringLiteralConcetanation extendsWith ( StringLiteral lit ) { } public StringBuffer printExpression ( int indent , StringBuffer output ) { <START_BUG> output . append ( "NAryStringLiteral{" ) ; <END_BUG> for ( int i = 0 , max = this . counter ; i < max ; i ++ ) { this . literals [ i ] . printExpression ( indent , output ) ; output . append ( "+\n" ) ; } return output . append ( '}' ) ; } public char [ ] source ( ) { } public void traverse ( ASTVisitor visitor , BlockScope scope ) { } }

Fix:
output . append ( "StringLiteralConcatenation{" ) ;
Buggy code:
public final class ZipTestCase extends AbstractTestCase { public void testZipArchiveCreation ( ) throws Exception { } public void testZipUnarchive ( ) throws Exception { } public void testListAllFilesWithNestedArchive ( ) throws Exception { <START_BUG> final File input = getFile ( "archives//OSX_ArchiveWithNestedArchive.zip" ) ; <END_BUG> List results = new ArrayList ( ) ; final InputStream is = new FileInputStream ( input ) ; ArchiveInputStream in = null ; try { in = new ArchiveStreamFactory ( ) . createArchiveInputStream ( "zip" , is ) ; ZipArchiveEntry entry = null ; while ( ( entry = ( ( ZipArchiveEntry ) ( in . getNextEntry ( ) ) ) ) != null ) { results . add ( entry . getName ( ) ) ; ArchiveInputStream nestedIn = new ArchiveStreamFactory ( ) . createArchiveInputStream ( "zip" , in ) ; ZipArchiveEntry nestedEntry = null ; while ( ( nestedEntry = ( ( ZipArchiveEntry ) ( nestedIn . getNextEntry ( ) ) ) ) != null ) { results . add ( nestedEntry . getName ( ) ) ; } } } finally { if ( in != null ) { in . close ( ) ; } } is . close ( ) ; results . contains ( "NestedArchiv.zip" ) ; results . contains ( "test1.xml" ) ; results . contains ( "test2.xml" ) ; results . contains ( "test3.xml" ) ; } }

Fix:
final File input = getFile ( "OSX_ArchiveWithNestedArchive.zip" ) ;
Buggy code:
public class ImportContainer extends SourceRefElement implements IImportContainer { protected ImportContainer ( CompilationUnit parent ) { } public boolean equals ( Object o ) { } public int getElementType ( ) { } public IJavaElement getHandleFromMemento ( String token , MementoTokenizer memento , WorkingCopyOwner workingCopyOwner ) { } protected char getHandleMementoDelimiter ( ) { } public IImportDeclaration getImport ( String importName ) { } protected IImportDeclaration getImport ( String importName , boolean isOnDemand ) { } public IJavaElement getPrimaryElement ( boolean checkOwner ) { } public ISourceRange getSourceRange ( ) throws JavaModelException { } public String readableName ( ) { } protected void toString ( int tab , StringBuffer buffer ) { } protected void toStringInfo ( int tab , StringBuffer buffer , Object info , boolean showResolvedInfo ) { <START_BUG> buffer . append ( this . tabString ( tab ) ) ; <END_BUG> buffer . append ( "<import<seq2seq4repair_space>container>" ) ; if ( info == null ) { buffer . append ( "<seq2seq4repair_space>(not<seq2seq4repair_space>open)" ) ; } } }

Fix:
buffer . append ( tabString ( tab ) ) ;
Buggy code:
public class ToPrintSteamDeployer { private File dir ; private PrintStream doOutputPrintStream ; private PrintStream undoOutputPrintStream ; private final DatabaseSchemaVersionManager schemaManager ; private final DbmsSyntax dbmsSyntax ; public ToPrintSteamDeployer ( DatabaseSchemaVersionManager schemaManager , File dir , PrintStream outputPrintStream , DbmsSyntax dbmsSyntax , PrintStream undoOutputPrintStream ) { } public void doDeploy ( Integer lastChangeToApply ) throws IOException , SQLException , DbDeployException { <START_BUG> System . out . println ( "dbdeploy<seq2seq4repair_space>v2.1" ) ; <END_BUG> ChangeScriptRepository repository = new ChangeScriptRepository ( new DirectoryScanner ( ) . getChangeScriptsForDirectory ( dir ) ) ; ChangeScriptExecuter doScriptExecuter = new ChangeScriptExecuter ( doOutputPrintStream , dbmsSyntax ) ; Controller doController = new Controller ( schemaManager , repository , doScriptExecuter ) ; doController . processDoChangeScripts ( lastChangeToApply ) ; doOutputPrintStream . flush ( ) ; if ( ( undoOutputPrintStream ) != null ) { ChangeScriptExecuter undoScriptExecuter = new ChangeScriptExecuter ( undoOutputPrintStream , dbmsSyntax ) ; Controller undoController = new Controller ( schemaManager , repository , undoScriptExecuter ) ; undoController . processUndoChangeScripts ( lastChangeToApply ) ; undoOutputPrintStream . flush ( ) ; } } }

Fix:
System . out . println ( "dbdeploy<seq2seq4repair_space>v2.11" ) ;
Buggy code:
public class ExceptionHandler { protected ActionForward execute ( Exception ex , ExceptionConfig ae , ActionMapping mapping , ActionForm formInstance , HttpServletRequest request , HttpServletResponse response ) throws ServletException { ActionForward forward = null ; ActionError error = null ; String property = null ; String path ; if ( ( ae . getPath ( ) ) != null ) { path = ae . getPath ( ) ; } else { path = mapping . getInput ( ) ; } forward = new ActionForward ( path ) ; if ( ex instanceof AppException ) { <START_BUG> error = new ActionError ( ae . getKey ( ) ) ; <END_BUG> property = ( ( AppException ) ( ex ) ) . getProperty ( ) ; } else { error = new ActionError ( ae . getKey ( ) ) ; property = error . getKey ( ) ; } storeException ( request , property , error , forward , ae . getScope ( ) ) ; return forward ; } protected void storeException ( HttpServletRequest request , String property , ActionError error , ActionForward forward , String scope ) { } }

Fix:
error = ( ( AppException ) ( ex ) ) . getError ( ) ;
Buggy code:
public class MerkleBTree { public static final int MAX_NODE_CHILDREN = 16 ; public final ContentAddressedStorage storage ; public final int maxChildren ; public TreeNode root ; public MerkleBTree ( TreeNode root , byte [ ] rootHash , ContentAddressedStorage storage , int maxChildren ) { } public static MerkleBTree create ( byte [ ] rootHash , ContentAddressedStorage dht ) throws IOException { } public byte [ ] get ( byte [ ] rawKey ) throws IOException { } public byte [ ] put ( byte [ ] rawKey , byte [ ] value ) throws IOException { TreeNode newRoot = root . put ( new ByteArrayWrapper ( rawKey ) , value , storage , maxChildren ) ; if ( root . hash . isPresent ( ) ) storage . remove ( root . hash . get ( ) ) ; if ( ! ( newRoot . hash . isPresent ( ) ) ) { <START_BUG> root = new TreeNode ( newRoot . keys , storage . put ( root . serialize ( ) ) ) ; <END_BUG> } else root = newRoot ; return root . hash . get ( ) ; } public byte [ ] delete ( byte [ ] rawKey ) throws IOException { } public int size ( ) throws IOException { } public void print ( PrintStream w ) throws IOException { } }

Fix:
root = new TreeNode ( newRoot . keys , storage . put ( newRoot . serialize ( ) ) ) ;
Buggy code:
public class IsosurfaceRenderer { public FloatBuffer vertb ; public FloatBuffer vertn ; public IntBuffer indb ; private int [ ] VBOVertices = new int [ 1 ] ; private int [ ] VBONormals = new int [ 1 ] ; public float maxX ; public float maxY ; public float maxZ ; public float minX ; public float minY ; public float minZ ; private IsosurfaceRenderer . IsosurfTranspRenderer [ ] transpList = null ; boolean VBOsupported ; boolean hasVBO = false ; public void uploadData ( ModelView view , FloatBuffer vertb , FloatBuffer vertn , IntBuffer indb ) { this . vertb = vertb ; this . vertn = vertn ; this . indb = indb ; <START_BUG> VBOsupported = view . VBOsupported ; <END_BUG> VBOsupported = false ; } private static void checkGLerr ( GL gl , String pos ) { } public Collection < BoundingBox > adjustScale ( ModelWindow w ) { } public Vector3d autoCenterMid ( ) { } public double autoCenterRadius ( Vector3d mid ) { } public abstract class IsosurfRenderState implements TransparentRender . RenderState { public boolean isTransparent ; } public abstract class IsosurfTranspRenderer extends TransparentRender { public Vector3d midpos ; } public void clean ( GL gl ) { } public void render ( GL glin , List < TransparentRender > transparentRenderers , GLCamera cam , final float red , final float green , final float blue , final float trans ) { } }

Fix:
VBOsupported = view . supportsVBO ;
Buggy code:
public class Processor < S extends ProcessorService > { public static final String TAG = Processor . class . getSimpleName ( ) ; private Class < ? extends ProcessorService > serviceClass ; private Map < ITask , IObserver [ ] > plannedTasks ; private ServiceConnection connection ; private S service ; public Processor ( Class < ? extends ProcessorService > serviceClass ) { } public < K , R > Future < R > execute ( ITask < K , R > task , IObserver < R > ... observers ) { } public < K , R > void planExecute ( ITask < K , R > task , IObserver < R > ... observers ) { } public void removeObservers ( ITask task ) { } public < R > R obtainFromCache ( Object key , Class dataClass , long expiryTime ) { } public < R > R obtainFromCache ( Object key , Class dataClass ) { } public void removeFromCache ( Object key , Class dataClass ) { } public void clearCache ( Class dataClass ) { } public void clearCache ( ) { } public void bind ( Context context ) { } public void unbind ( Context context ) { } public boolean isBound ( ) { } public S getService ( ) { } private class Connection implements ServiceConnection { @ Override @ SuppressWarnings ( "unchecked" ) public void onServiceConnected ( ComponentName name , IBinder service ) { LW . d ( Processor . TAG , "Service<seq2seq4repair_space>'%s'<seq2seq4repair_space>connected." , name ) ; Processor . this . service = ( ( S ) ( ( ( ProcessorService . ProcessorBinder ) ( service ) ) . getService ( ) ) ) ; if ( ( plannedTasks . size ( ) ) > 0 ) { <START_BUG> LW . d ( Processor . TAG , "Execute<seq2seq4repair_space>planned<seq2seq4repair_space>%d<seq2seq4repair_space>tasks." , Integer . toString ( plannedTasks . size ( ) ) ) ; <END_BUG> for ( Map . Entry < ITask , IObserver [ ] > entry : plannedTasks . entrySet ( ) ) { Processor . this . service . execute ( entry . getKey ( ) , entry . getValue ( ) ) ; } plannedTasks . clear ( ) ; } } @ Override public void onServiceDisconnected ( ComponentName name ) { } } }

Fix:
LW . d ( Processor . TAG , "Execute<seq2seq4repair_space>planned<seq2seq4repair_space>%d<seq2seq4repair_space>tasks." , plannedTasks . size ( ) ) ;
Buggy code:
public abstract class ResolvedTypeMunger { protected ResolvedTypeMunger . Kind kind ; protected ResolvedMember signature ; public static transient boolean persistSourceLocation = true ; private Set superMethodsCalled = Collections . EMPTY_SET ; private ISourceLocation location ; public ResolvedTypeMunger ( ResolvedTypeMunger . Kind kind , ResolvedMember signature ) { } public void setSourceLocation ( ISourceLocation isl ) { } public ISourceLocation getSourceLocation ( ) { } public ConcreteTypeMunger concretize ( World world , ResolvedType aspectType ) { } public boolean matches ( ResolvedType matchType , ResolvedType aspectType ) { } public String toString ( ) { } public static ResolvedTypeMunger read ( VersionedDataInputStream s , ISourceContext context ) throws IOException { } protected static Set readSuperMethodsCalled ( VersionedDataInputStream s ) throws IOException { Set ret = new HashSet ( ) ; int n = s . readInt ( ) ; for ( int i = 0 ; i < n ; i ++ ) { <START_BUG> ret . add ( ResolvedMember . readResolvedMember ( s , null ) ) ; <END_BUG> } return ret ; } protected void writeSuperMethodsCalled ( DataOutputStream s ) throws IOException { } protected static ISourceLocation readSourceLocation ( DataInputStream s ) throws IOException { } protected void writeSourceLocation ( DataOutputStream s ) throws IOException { } public abstract void write ( DataOutputStream s ) throws IOException { } public ResolvedTypeMunger . Kind getKind ( ) { } public static class Kind extends TypeSafeEnum { Kind ( String name , int key ) { } public static ResolvedTypeMunger . Kind read ( DataInputStream s ) throws IOException { } } public static final ResolvedTypeMunger . Kind Field = new ResolvedTypeMunger . Kind ( "Field" , 1 ) ; public static final ResolvedTypeMunger . Kind Method = new ResolvedTypeMunger . Kind ( "Method" , 2 ) ; public static final ResolvedTypeMunger . Kind Constructor = new ResolvedTypeMunger . Kind ( "Constructor" , 5 ) ; public static final ResolvedTypeMunger . Kind PerObjectInterface = new ResolvedTypeMunger . Kind ( "PerObjectInterface" , 3 ) ; public static final ResolvedTypeMunger . Kind PrivilegedAccess = new ResolvedTypeMunger . Kind ( "PrivilegedAccess" , 4 ) ; public static final ResolvedTypeMunger . Kind Parent = new ResolvedTypeMunger . Kind ( "Parent" , 6 ) ; public static final ResolvedTypeMunger . Kind PerTypeWithinInterface = new ResolvedTypeMunger . Kind ( "PerTypeWithinInterface" , 7 ) ; public static final ResolvedTypeMunger . Kind AnnotationOnType = new ResolvedTypeMunger . Kind ( "AnnotationOnType" , 8 ) ; public static final String SUPER_DISPATCH_NAME = "superDispatch" ; public void setSuperMethodsCalled ( Set c ) { } public Set getSuperMethodsCalled ( ) { } public ResolvedMember getSignature ( ) { } public ResolvedMember getMatchingSyntheticMember ( Member member , ResolvedType aspectType ) { } public boolean changesPublicSignature ( ) { } public boolean needsAccessToTopmostImplementor ( ) { } }

Fix:
ret . add ( ResolvedMemberImpl . readResolvedMember ( s , null ) ) ;