auphong2707/dl4se-code-review-dataset huggingface dataset:
Source:
public void prepare(Object configurationObject) { this.mapper = new StreamsJacksonMapper(); this.datasiftInteractionActivitySerializer = new DatasiftActivitySerializer(); if(this.outClass.equals(Activity.class)) { this.converter = new ActivityConverter(); } else if (this.outClass.equals(String.class)) { this.converter = new StringConverter(); } else { throw new NotImplementedException("No converter implemented for class : "+this.outClass.getName()); } }

Target:
public void prepare(Object configurationObject) { this.mapper = StreamsJacksonMapper.getInstance(); this.datasiftInteractionActivitySerializer = new DatasiftActivitySerializer(); if(this.outClass.equals(Activity.class)) { this.converter = new ActivityConverter(); } else if (this.outClass.equals(String.class)) { this.converter = new StringConverter(); } else { throw new NotImplementedException("No converter implemented for class : "+this.outClass.getName()); } }
Source:
static void assertAccountInAccountService(Account account, AccountService accountService) { account = adjustSnapshotVersion(account, 1); Account accountFoundById = accountService.getAccountById(account.getId()); Account accountFoundByName = accountService.getAccountByName(account.getName()); assertEquals("Account got by name from accountService does not match account to assert.", account, accountFoundByName); assertEquals("Account got by id from accountService does not match the account to assert", account, accountFoundById); assertEquals("The number of containers in the account is wrong.", accountFoundById.getAllContainers().size(), account.getAllContainers().size()); for (Container container : account.getAllContainers()) { assertContainerInAccountService(container, accountService); } }

Target:
static void assertAccountInAccountService(Account account, AccountService accountService) { Account accountFoundById = accountService.getAccountById(account.getId()); Account accountFoundByName = accountService.getAccountByName(account.getName()); assertEquals("Account got by name from accountService does not match account to assert.", account, accountFoundByName); assertEquals("Account got by id from accountService does not match the account to assert", account, accountFoundById); assertEquals("The number of containers in the account is wrong.", accountFoundById.getAllContainers().size(), account.getAllContainers().size()); for (Container container : account.getAllContainers()) { assertContainerInAccountService(container, accountService); } }
Source:
protected String getTemplateFileName(boolean html) { if(tank instanceof GunEmplacement) { if (html) { return "gunemplacement.ftlh"; } return "gunemplacement.ftl"; } if (html) { return "vehicle.ftlh"; } return "vehicle.ftl"; }

Target:
protected String getTemplateFileName(boolean html) { if (tank instanceof GunEmplacement) { if (html) { return "gunemplacement.ftlh"; } else { return "gunemplacement.ftl"; } } if (html) { return "vehicle.ftlh"; } return "vehicle.ftl"; }
Source:
public void testNoPathFilter() throws Exception { final BackgroundHiveSplitLoader backgroundHiveSplitLoader = getBackgroundHiveSplitLoader(getFiles(), TupleDomain.none()); final HiveSplitSource hiveSplitSource = new HiveSplitSource(1, backgroundHiveSplitLoader, mockExecutor); backgroundHiveSplitLoader.start(hiveSplitSource); assertEquals(2, hiveSplitSource.getOutstandingSplitCount()); }

Target:
public void testNoPathFilter() throws Exception { BackgroundHiveSplitLoader backgroundHiveSplitLoader = backgroundHiveSplitLoader( TEST_FILES, TupleDomain.none()); HiveSplitSource hiveSplitSource = hiveSplitSource(backgroundHiveSplitLoader); backgroundHiveSplitLoader.start(hiveSplitSource); assertEquals(2, hiveSplitSource.getOutstandingSplitCount()); }
Source:
public User addUserCreatedOnBuddyRequest(UserDTO buddyUserResource, String tempPassword) { UUID savedUserID = CryptoSession.execute(Optional.of(tempPassword), null, () -> tempEncryptionContextExecutor .addUserCreatedOnBuddyRequestFlush(buddyUserResource).getID()); return getEntityByID(savedUserID); }

Target:
public User addUserCreatedOnBuddyRequest(UserDTO buddyUserResource, String tempPassword) { UUID savedUserID = CryptoSession.execute(Optional.of(tempPassword), null, () -> tempEncryptionContextExecutor.addUserCreatedOnBuddyRequest(buddyUserResource).getID()); return getEntityByID(savedUserID); }
Source:
public void onRenamed(I item, String oldName, String newName) throws IOException { items.remove(oldName); items.put(newName, (I) item); for (View v : views) { v.onJobRenamed(item, oldName, newName); } save(); }

Target:
public void onRenamed(I item, String oldName, String newName) throws IOException { items.remove(oldName); items.put(newName, item); for (View v : views) { v.onJobRenamed(item, oldName, newName); } save(); }
Source:
private boolean fileTimeStampIsWanted(File f) throws IOException { long timestamp = f.lastModified(); LocalDateTime fileEndTime = LocalDateTime.ofInstant(Instant.ofEpochMilli(timestamp), ZoneId.systemDefault()); LocalDateTime fileStartTime = inferFileStartTime(f); if (fileStartTime == null) { fileStartTime = LocalDateTime.MIN; } if (mStartTime != null && mStartTime.isAfter(fileEndTime)) { return false; } if (mEndTime != null && mEndTime.isBefore(fileStartTime)) { return false; } return true; }

Target:
private boolean fileTimeStampIsWanted(File f) throws IOException { if (mStartTime != null) { long timestamp = f.lastModified(); LocalDateTime fileEndTime = LocalDateTime.ofInstant(Instant.ofEpochMilli(timestamp), ZoneId.systemDefault()); if (mStartTime.isAfter(fileEndTime)) { return false; } } if (mEndTime != null) { LocalDateTime fileStartTime = inferFileStartTime(f); if (fileStartTime == null) { fileStartTime = LocalDateTime.MIN; } if (mEndTime.isBefore(fileStartTime)) { return false; } } return true; }
Source:
public NetworkCidr getNetworkCidr(Network network, CloudCredential credential) { String subnetId = network.getStringParameter(GcpStackUtil.SUBNET_ID); String region = network.getStringParameter(GcpStackUtil.REGION); String sharedProjectId = network.getStringParameter(GcpStackUtil.SHARED_PROJECT_ID); LOGGER.debug("Getting network cidrs for subnet in region {}", subnetId, region); Compute compute = GcpStackUtil.buildCompute(credential); String projectId = GcpStackUtil.getProjectId(credential); Subnetwork subnet = null; try { SubnetworkList ownProjectSubnets = compute.subnetworks().list(projectId, region).execute(); Set<Subnetwork> collect = ownProjectSubnets.getItems() .stream() .filter(e -> e.getName().equals(subnetId)) .collect(Collectors.toSet()); if (collect.isEmpty()) { subnet = compute.subnetworks().get(sharedProjectId, region, subnetId).execute(); } else { subnet = compute.subnetworks().get(projectId, region, subnetId).execute(); } String ipCidrRange = subnet.getIpCidrRange(); return new NetworkCidr(ipCidrRange, Collections.singletonList(ipCidrRange)); } catch (IOException e) { throw new GcpResourceException("Describe subnets failed due to IO exception", GCP_NETWORK, subnetId); } }

Target:
public NetworkCidr getNetworkCidr(Network network, CloudCredential credential) { String subnetId = network.getStringParameter(GcpStackUtil.SUBNET_ID); String region = network.getStringParameter(GcpStackUtil.REGION); String sharedProjectId = network.getStringParameter(GcpStackUtil.SHARED_PROJECT_ID); LOGGER.debug("Getting network cidrs for subnet in region {}", subnetId, region); Compute compute = GcpStackUtil.buildCompute(credential); String projectId = GcpStackUtil.getProjectId(credential); Subnetwork subnet = null; try { SubnetworkList ownProjectSubnets = compute.subnetworks().list(projectId, region).execute(); Set<Subnetwork> collect = ownProjectSubnets.getItems() .stream() .filter(e -> e.getName().equals(subnetId)) .collect(Collectors.toSet()); if (collect.isEmpty()) { subnet = compute.subnetworks().get(sharedProjectId, region, subnetId).execute(); } else { subnet = collect .stream() .findFirst() .orElse(null); } if (subnet == null) { throw new GcpResourceException(String.format("Subnet with id %s did not found.", subnetId)); } String ipCidrRange = subnet.getIpCidrRange(); return new NetworkCidr(ipCidrRange, Collections.singletonList(ipCidrRange)); } catch (IOException e) { throw new GcpResourceException("Describe subnets failed due to IO exception", GCP_NETWORK, subnetId); } }
Source:
protected ImmutableSet<String> functionNames() { return ImmutableSet.<String>builder() .addAll(NEW_BY_DEPRECATED_FUNCTIONS.keySet()) .add(SET_LOCALE_FUNCTION) .add(PARSE_STR_FUNCTION) .add(ASSERT_FUNCTION) .add(DEFINE_FUNCTION) .add(STREAM_FILTER_APPEND_FUNCTION) .build(); }

Target:
protected ImmutableSet<String> functionNames() { return ImmutableSet.<String>builder() .addAll(NEW_BY_DEPRECATED_FUNCTIONS.keySet()) .addAll(SEARCHING_STRING_FUNCTIONS) .add(SET_LOCALE_FUNCTION) .add(PARSE_STR_FUNCTION) .add(ASSERT_FUNCTION) .add(DEFINE_FUNCTION) .build(); }
Source:
void setBackgroundColor (long context, long handle, GdkRGBA rgba) { if (OS.GTK_VERSION < OS.VERSION(3, 10, 10) && (style & (SWT.CHECK | SWT.RADIO)) != 0) { super.setBackgroundColor (context, handle, rgba); return; } String css ="* {\n"; if (rgba != null) { String color = gtk_rgba_to_css_string (rgba); css += "background: " + color + ";\n"; } css += "}\n"; gtk_css_provider_load_from_css (context, css); }

Target:
void setBackgroundColor (long context, long handle, GdkRGBA rgba) { if (OS.GTK_VERSION < OS.VERSION(3, 10, 0) && (style & (SWT.CHECK | SWT.RADIO)) != 0) { super.setBackgroundColor (context, handle, rgba); return; } String css ="* {\n"; if (rgba != null) { String color = gtk_rgba_to_css_string (rgba); css += "background: " + color + ";\n"; } css += "}\n"; gtk_css_provider_load_from_css (context, css); }
Source:
public static Method[] listSMDMethods(Class clazz, boolean ignoreInterfaces) { final List<Method> methods = new LinkedList<>(); if (ignoreInterfaces) { Method[] SMDMethods = clazz.getMethods(); Arrays.sort(SMDMethods, (a, b) -> a.toString().compareTo(b.toString())); for (Method method : SMDMethods) { SMDMethod smdMethodAnnotation = method.getAnnotation(SMDMethod.class); if (smdMethodAnnotation != null) { methods.add(method); } } } else { JSONUtil.visitInterfaces(clazz, new JSONUtil.ClassVisitor() { public boolean visit(Class aClass) { Method[] SMDMethods = aClass.getMethods(); Arrays.sort(SMDMethods, (a, b) -> a.toString().compareTo(b.toString())); for (Method method : SMDMethods) { SMDMethod smdMethodAnnotation = method.getAnnotation(SMDMethod.class); if ((smdMethodAnnotation != null) && !methods.contains(method)) { methods.add(method); } } return true; } }); } Method[] methodResult = new Method[methods.size()]; return methods.toArray(methodResult); }

Target:
public static Method[] listSMDMethods(Class clazz, boolean ignoreInterfaces) { final List<Method> methods = new LinkedList<>(); if (ignoreInterfaces) { Method[] classMethods = clazz.getMethods(); Arrays.sort(classMethods, (a, b) -> a.toString().compareTo(b.toString())); for (Method method : classMethods) { SMDMethod smdMethodAnnotation = method.getAnnotation(SMDMethod.class); if (smdMethodAnnotation != null) { methods.add(method); } } } else { JSONUtil.visitInterfaces(clazz, new JSONUtil.ClassVisitor() { public boolean visit(Class aClass) { Method[] classMethods = aClass.getMethods(); Arrays.sort(classMethods, (a, b) -> a.toString().compareTo(b.toString())); for (Method method : classMethods) { SMDMethod smdMethodAnnotation = method.getAnnotation(SMDMethod.class); if ((smdMethodAnnotation != null) && !methods.contains(method)) { methods.add(method); } } return true; } }); } Method[] methodResult = new Method[methods.size()]; return methods.toArray(methodResult); }
Source:
public void deleteSubpopulationPermanently(StudyIdentifier studyId, SubpopulationGuid subpopGuid) { checkNotNull(studyId); checkNotNull(subpopGuid); studyConsentService.deleteAllConsentsPermanently(subpopGuid); subpopDao.deleteSubpopulationPermanently(studyId, subpopGuid); cacheProvider.removeObject(CacheKey.subpop(subpopGuid, studyId)); cacheProvider.removeObject(CacheKey.subpopList(studyId)); }

Target:
public void deleteSubpopulationPermanently(StudyIdentifier studyId, SubpopulationGuid subpopGuid) { checkNotNull(studyId); checkNotNull(subpopGuid); subpopDao.deleteSubpopulationPermanently(studyId, subpopGuid); studyConsentService.deleteAllConsentsPermanently(subpopGuid); cacheProvider.removeObject(CacheKey.subpop(subpopGuid, studyId)); cacheProvider.removeObject(CacheKey.subpopList(studyId)); }
Source:
public Object evaluate(DeferredObject[] arguments) throws HiveException { result.clear(); try { if (arguments.length == 1 && argumentOI != null && arguments[0] != null) { String ip = ((StringObjectInspector) argumentOI).getPrimitiveJavaObject(arguments[0].get()); result.set(geocode.getCountryCode(ip)); } } catch (Exception ex) { LOG.error(ex); } return result; }

Target:
public Object evaluate(DeferredObject[] arguments) throws HiveException { result.clear(); if (arguments.length == 1 && argumentOI != null && arguments[0] != null) { String ip = ((StringObjectInspector) argumentOI).getPrimitiveJavaObject(arguments[0].get()); result.set(geocode.getCountryCode(ip)); } return result; }
Source:
private void init() { application = this; registerActivityLifecycleCallbacks(new MyActivityLifecycleCallbacks()); injector = RoboGuice.getOrCreateBaseApplicationInjector((Application) this, RoboGuice.DEFAULT_STAGE, (Module) RoboGuice.newDefaultRoboModule(this), (Module) new EdxDefaultModule(this)); injector.injectMembers(this); if (config.getFabricConfig().isEnabled() && !BuildConfig.DEBUG) { Fabric.with(this, new CrashlyticsCore(), new Answers()); EventBus.getDefault().register(new CrashlyticsCrashReportObserver()); } if (config.getNewRelicConfig().isEnabled()) { NewRelic.withApplicationToken(config.getNewRelicConfig().getNewRelicKey()) .withCrashReportingEnabled(false) .start(this); } registerReceiver(new NetworkConnectivityReceiver(), new IntentFilter("android.net.conn.CONNECTIVITY_CHANGE")); registerReceiver(new NetworkConnectivityReceiver(), new IntentFilter("android.net.wifi.WIFI_STATE_CHANGED")); boolean isOnZeroRatedNetwork = NetworkUtil.isOnZeroRatedNetwork(getApplicationContext(), config); if (!isOnZeroRatedNetwork && config.getFacebookConfig().isEnabled()) { com.facebook.Settings.setApplicationId(config.getFacebookConfig().getFacebookAppId()); } if (needVersionUpgrade(this)) { injector.getInstance(IStorage.class).repairDownloadCompletionData(); } Iconify.with(new FontAwesomeModule()); CalligraphyConfig.initDefault(new CalligraphyConfig.Builder() .setDefaultFontPath("fonts/OpenSans-Regular.ttf") .setFontAttrId(R.attr.fontPath) .build() ); }

Target:
private void init() { application = this; registerActivityLifecycleCallbacks(new MyActivityLifecycleCallbacks()); injector = RoboGuice.getOrCreateBaseApplicationInjector((Application) this, RoboGuice.DEFAULT_STAGE, (Module) RoboGuice.newDefaultRoboModule(this), (Module) new EdxDefaultModule(this)); injector.injectMembers(this); if (config.getFabricConfig().isEnabled() && !BuildConfig.DEBUG) { Fabric.with(this, new CrashlyticsCore(), new Answers()); EventBus.getDefault().register(new CrashlyticsCrashReportObserver()); } if (config.getNewRelicConfig().isEnabled()) { NewRelic.withApplicationToken(config.getNewRelicConfig().getNewRelicKey()) .withCrashReportingEnabled(false) .start(this); } registerReceiver(new NetworkConnectivityReceiver(), new IntentFilter(ConnectivityManager.CONNECTIVITY_ACTION)); registerReceiver(new NetworkConnectivityReceiver(), new IntentFilter(WifiManager.WIFI_STATE_CHANGED_ACTION)); boolean isOnZeroRatedNetwork = NetworkUtil.isOnZeroRatedNetwork(getApplicationContext(), config); if (!isOnZeroRatedNetwork && config.getFacebookConfig().isEnabled()) { com.facebook.Settings.setApplicationId(config.getFacebookConfig().getFacebookAppId()); } if (needVersionUpgrade(this)) { injector.getInstance(IStorage.class).repairDownloadCompletionData(); } Iconify.with(new FontAwesomeModule()); CalligraphyConfig.initDefault(new CalligraphyConfig.Builder() .setDefaultFontPath("fonts/OpenSans-Regular.ttf") .setFontAttrId(R.attr.fontPath) .build() ); }
Source:
private static SortedSet<ServiceName> findAllMissingServices(Set<ServiceController<?>> missingTransitive, Set<ServiceName> alreadyTracked) { Set<ServiceContainer> examined = new HashSet<ServiceContainer>(); SortedSet<ServiceName> allMissingServices = new TreeSet<ServiceName>(); for (ServiceController<?> controller : missingTransitive) { ServiceContainer container = controller.getServiceContainer(); if (examined.add(container)) { allMissingServices.addAll(findAllMissingServices(container)); } } Set<ServiceName> retain = new HashSet<>(allMissingServices); retain.removeAll(alreadyTracked); if (retain.size() != 0) { allMissingServices.clear(); } return allMissingServices; }

Target:
private static SortedSet<ServiceName> findAllMissingServices(Set<ServiceController<?>> missingTransitive, Set<ServiceName> alreadyTracked) { Set<ServiceContainer> examined = new HashSet<ServiceContainer>(); SortedSet<ServiceName> allMissingServices = new TreeSet<ServiceName>(); for (ServiceController<?> controller : missingTransitive) { ServiceContainer container = controller.getServiceContainer(); if (examined.add(container)) { allMissingServices.addAll(findAllMissingServices(container)); } } Set<ServiceName> retain = new HashSet<>(allMissingServices); retain.removeAll(alreadyTracked); if (retain.size() == 0) { allMissingServices.clear(); } return allMissingServices; }
Source:
public void onLiveStreamTranscoderCreate(ILiveStreamTranscoder liveStreamTranscoder, IMediaStream stream) { ((LiveStreamTranscoder)liveStreamTranscoder).addActionListener( new TranscoderActionNotifier(stream)); }

Target:
public void onLiveStreamTranscoderCreate(ILiveStreamTranscoder liveStreamTranscoder, IMediaStream stream) { logger.info("onLiveStreamTranscoderCreate: " + stream.getSrc()); TranscoderActionNotifier transcoderActionNotifier = new TranscoderActionNotifier(stream); ((LiveStreamTranscoder)liveStreamTranscoder).addActionListener( transcoderActionNotifier); WMSProperties props = stream.getProperties(); synchronized (props) { props.put("TranscoderActionNotifier", transcoderActionNotifier); } }
Source:
private boolean isHTTPAuthErrorMessage(Exception e) { if (e != null && e.getMessage() != null && e.getMessage().contains("401")) { return true; } return false; }

Target:
private boolean isHTTPAuthErrorMessage(Exception e) { return e != null && e.getMessage() != null && e.getMessage().contains("401"); }
Source:
public char getLabel() { final char returnValue; switch (getType()) { case INPUT_VAL: returnValue = buttonData.inputVal; break; case AUTO_CHAR: returnValue = buttonData.autoChar; break; case CUSTOM: returnValue = buttonData.customChar; break; default: returnValue = '*'; } return returnValue; }

Target:
public char getLabel() { return getType().getLabel(getData()); }
Source:
public Optional<String> getVersion() { if (provider.contains("OracleJDK")) { return version.ofNullable(System.getProperty("java.version")); } else { return version.empty(); } }

Target:
public Optional<String> getVersion() { if (provider.contains("OracleJDK")) { return Optional.ofNullable(System.getProperty("java.version")); } else { return Optional.empty(); } }
Source:
private void getToken() throws Exception { while (TOKEN_STRING == null) { handleResponse(); Thread.sleep(2000); } logger.debug("Token has been acquired: " + TOKEN_STRING); }

Target:
private void getToken() throws Exception { while (TOKEN_STRING == null) { handleResponse(); Thread.sleep(2000); } logger.debug("Token has been acquired: '{}'", TOKEN_STRING); }
Source:
private <T> void onRemoteOpMsg(final AvroElasticMemoryMessage msg) { LOG.log(Level.INFO, "onRemoteOpMsg: {0}", msg); final RemoteOpMsg remoteOpMsg = msg.getRemoteOpMsg(); final String origEvalId = remoteOpMsg.getOrigEvalId().toString(); final DataOpType operationType = remoteOpMsg.getOpType(); final String dataType = remoteOpMsg.getDataType().toString(); final List<AvroLongRange> avroLongRangeList = remoteOpMsg.getDataKeyRanges(); final List<UnitIdPair> dataKVPairList = remoteOpMsg.getDataKVPairList(); final String operationId = msg.getOperationId().toString(); final List<LongRange> dataKeyRanges = new ArrayList<>(avroLongRangeList.size()); for (final AvroLongRange avroRange : avroLongRangeList) { dataKeyRanges.add(AvroUtils.fromAvroLongRange(avroRange)); } final Optional<SortedMap<Long, T>> dataKeyValueMap; if (dataKVPairList.isEmpty()) { dataKeyValueMap = Optional.empty(); } else { dataKeyValueMap = Optional.of((SortedMap<Long, T>) new TreeMap<Long, T>()); final Codec codec = serializer.getCodec(dataType); for (final UnitIdPair dataKVPair : dataKVPairList) { final T dataValue = (T) codec.decode(dataKVPair.getUnit().array()); dataKeyValueMap.get().put(dataKVPair.getId(), dataValue); } } final DataOperation<T> operation = new DataOperation<>(Optional.of(origEvalId), operationId, operationType, dataType, dataKeyRanges, dataKeyValueMap); memoryStore.onNext(operation); }

Target:
private <T> void onRemoteOpMsg(final AvroElasticMemoryMessage msg) { LOG.log(Level.INFO, "onRemoteOpMsg: {0}", msg); final RemoteOpMsg remoteOpMsg = msg.getRemoteOpMsg(); final String origEvalId = remoteOpMsg.getOrigEvalId().toString(); final DataOpType operationType = remoteOpMsg.getOpType(); final String dataType = remoteOpMsg.getDataType().toString(); final List<AvroLongRange> avroLongRangeList = remoteOpMsg.getDataKeyRanges(); final List<UnitIdPair> dataKVPairList = remoteOpMsg.getDataKVPairList(); final String operationId = msg.getOperationId().toString(); final List<LongRange> dataKeyRanges = new ArrayList<>(avroLongRangeList.size()); for (final AvroLongRange avroRange : avroLongRangeList) { dataKeyRanges.add(AvroUtils.fromAvroLongRange(avroRange)); } final Optional<SortedMap<Long, T>> dataKeyValueMap; if (operationType.equals(DataOpType.PUT)) { final SortedMap<Long, T> dataMap = new TreeMap<>(); dataKeyValueMap = Optional.of(dataMap); final Codec codec = serializer.getCodec(dataType); for (final UnitIdPair dataKVPair : dataKVPairList) { final T dataValue = (T) codec.decode(dataKVPair.getUnit().array()); dataMap.put(dataKVPair.getId(), dataValue); } } else { dataKeyValueMap = Optional.empty(); } final DataOperation<T> operation = new DataOperation<>(Optional.of(origEvalId), operationId, operationType, dataType, dataKeyRanges, dataKeyValueMap); memoryStore.onNext(operation); }
Source:
private IParserSettings createParserSettings(IProject project) { ParserSettings parserSettings = new ParserSettings(); ICProject cProject = CoreModel.getDefault().getCModel().getCProject(project.getName()); if (CCorePreferenceConstants.getPreference(CCorePreferenceConstants.SCALABILITY_SKIP_TRIVIAL_EXPRESSIONS, cProject, CCorePreferenceConstants.DEFAULT_SCALABILITY_SKIP_TRIVIAL_EXPRESSIONS)) { int maximumNumberOfTrivialExpressionsInAggregateInitializers = CCorePreferenceConstants.getPreference( CCorePreferenceConstants.SCALABILITY_MAXIMUM_TRIVIAL_EXPRESSIONS, cProject, CCorePreferenceConstants.DEFAULT_SCALABILITY_MAXIMUM_TRIVIAL_EXPRESSIONS); parserSettings.setMaximumTrivialExpressionsInAggregateInitializers(maximumNumberOfTrivialExpressionsInAggregateInitializers); } return parserSettings; }

Target:
private IParserSettings createParserSettings(IProject project) { ParserSettings parserSettings = new ParserSettings(); ICProject cProject = CModelManager.getDefault().create(project); if (CCorePreferenceConstants.getPreference(CCorePreferenceConstants.SCALABILITY_SKIP_TRIVIAL_EXPRESSIONS, cProject, CCorePreferenceConstants.DEFAULT_SCALABILITY_SKIP_TRIVIAL_EXPRESSIONS)) { int maximumNumberOfTrivialExpressionsInAggregateInitializers = CCorePreferenceConstants.getPreference( CCorePreferenceConstants.SCALABILITY_MAXIMUM_TRIVIAL_EXPRESSIONS, cProject, CCorePreferenceConstants.DEFAULT_SCALABILITY_MAXIMUM_TRIVIAL_EXPRESSIONS); parserSettings.setMaximumTrivialExpressionsInAggregateInitializers(maximumNumberOfTrivialExpressionsInAggregateInitializers); } return parserSettings; }
Source:
private T createExtension(String name) { Class<?> clazz = getExtensionClasses().get(name); if (clazz == null) { throw findException(name); } try { EXTENSION_INSTANCES.computeIfAbsent(clazz, c -> { try { return c.newInstance(); } catch (Throwable t) { throw new IllegalStateException("Extension instance(name: " + name + ", class: " + type + ") could not be instantiated: " + t.getMessage(), t); } }); T instance = (T) EXTENSION_INSTANCES.get(clazz); injectExtension(instance); Set<Class<?>> wrapperClasses = cachedWrapperClasses; if (wrapperClasses != null && !wrapperClasses.isEmpty()) { for (Class<?> wrapperClass : wrapperClasses) { instance = injectExtension((T) wrapperClass.getConstructor(type).newInstance(instance)); } } return instance; } catch (Throwable t) { throw new IllegalStateException("Extension instance(name: " + name + ", class: " + type + ") could not be instantiated: " + t.getMessage(), t); } }

Target:
private T createExtension(String name) { Class<?> clazz = getExtensionClasses().get(name); if (clazz == null) { throw findException(name); } try { T instance = (T) EXTENSION_INSTANCES.computeIfAbsent(clazz, c -> { try { return c.newInstance(); } catch (Throwable t) { throw new IllegalStateException("Extension instance(name: " + name + ", class: " + type + ") could not be instantiated: " + t.getMessage(), t); } }); injectExtension(instance); Set<Class<?>> wrapperClasses = cachedWrapperClasses; if (wrapperClasses != null && !wrapperClasses.isEmpty()) { for (Class<?> wrapperClass : wrapperClasses) { instance = injectExtension((T) wrapperClass.getConstructor(type).newInstance(instance)); } } return instance; } catch (Throwable t) { throw new IllegalStateException("Extension instance(name: " + name + ", class: " + type + ") could not be instantiated: " + t.getMessage(), t); } }
Source:
protected void executeVmCommand() { AddCustomValue("InterfaceType", (VmInterfaceType.forValue(getParameters().getInterface().getType()).getDescription()).toString()); this.setVmName(getVmStaticDAO().get(getParameters().getVmId()).getVmName()); if (StringUtils.isEmpty(getMacAddress())) { getParameters().getInterface().setMacAddress(MacPoolManager.getInstance().allocateNewMac()); } boolean succeeded = false; try { getParameters().getInterface().setSpeed( VmInterfaceType.forValue( getParameters().getInterface().getType()).getSpeed()); getParameters().getInterface().setId(Guid.NewGuid()); getParameters().getInterface().setVmId(getParameters().getVmId()); TransactionSupport.executeInNewTransaction(new TransactionMethod<Void>() { @Override public Void runInTransaction() { addInterfaceToDb(getParameters().getInterface()); addInterfaceDeviceToDb(); getCompensationContext().stateChanged(); return null; } }); if (getParameters().getInterface().isPlugged()) { succeeded = activateOrDeactivateNic(getParameters().getInterface().getId(), PlugAction.PLUG); } else { succeeded = true; } } finally { setSucceeded(succeeded); if (!succeeded) { MacPoolManager.getInstance().freeMac(getParameters().getInterface().getMacAddress()); } } }

Target:
protected void executeVmCommand() { AddCustomValue("InterfaceType", (VmInterfaceType.forValue(getParameters().getInterface().getType()).getDescription()).toString()); this.setVmName(getVmStaticDAO().get(getParameters().getVmId()).getVmName()); boolean succeeded = false; boolean macAddedToPool = false; try { if (StringUtils.isEmpty(getMacAddress())) { getParameters().getInterface().setMacAddress(MacPoolManager.getInstance().allocateNewMac()); macAddedToPool = true; } else { macAddedToPool = addMacToPool(getMacAddress()); } getParameters().getInterface().setSpeed( VmInterfaceType.forValue( getParameters().getInterface().getType()).getSpeed()); getParameters().getInterface().setId(Guid.NewGuid()); getParameters().getInterface().setVmId(getParameters().getVmId()); TransactionSupport.executeInNewTransaction(new TransactionMethod<Void>() { @Override public Void runInTransaction() { addInterfaceToDb(getParameters().getInterface()); addInterfaceDeviceToDb(); getCompensationContext().stateChanged(); return null; } }); if (getParameters().getInterface().isPlugged()) { succeeded = activateOrDeactivateNic(getParameters().getInterface().getId(), PlugAction.PLUG); } else { succeeded = true; } } finally { setSucceeded(succeeded); if (macAddedToPool && !succeeded) { MacPoolManager.getInstance().freeMac(getMacAddress()); } } }
Source:
private static void removeUserSystemProperties(BackendlessUser user) { user.removeProperty( HeadersManager.HeadersEnum.USER_TOKEN_KEY.getHeader() ); user.removeProperty( USER_REGISTERED_KEY ); }

Target:
static void removeUserSystemProperties(BackendlessUser user) { user.removeProperty( HeadersManager.HeadersEnum.USER_TOKEN_KEY.getHeader() ); user.removeProperty( USER_REGISTERED_KEY ); }
Source:
protected MantaMultipartUploadPart uploadPart(final EncryptedMultipartUpload<WRAPPED_UPLOAD> upload, final int partNumber, final HttpEntity sourceEntity) throws IOException { Validate.notNull(upload, "Multipart upload object must not be null"); if (!upload.canUpload()) { String msg = "Multipart object is not in a state that it can be " + "used for uploading parts. For encrypted multipart " + "uploads, only multipart upload objects returned from " + "the initiateUpload() method can be used to upload parts."; throw new IllegalArgumentException(msg); } final EncryptionState encryptionState = upload.getEncryptionState(); encryptionState.getLock().lock(); final EncryptionContext encryptionContext = encryptionState.getEncryptionContext(); try { validatePartNumber(partNumber); if (encryptionState.getLastPartNumber() != -1) { Validate.isTrue(encryptionState.getLastPartNumber() + 1 == partNumber, "Encrypted MPU parts must be serial and sequential"); } else { encryptionState.setMultipartStream(new MultipartOutputStream( encryptionContext.getCipherDetails().getBlockSizeInBytes())); encryptionState.setCipherStream(EncryptingEntityHelper.makeCipherOutputForStream( encryptionState.getMultipartStream(), encryptionContext)); } final EncryptingPartEntity entity = new EncryptingPartEntity( encryptionState.getCipherStream(), encryptionState.getMultipartStream(), sourceEntity); encryptionState.setLastPartNumber(partNumber); return wrapped.uploadPart(upload.getWrapped(), partNumber, entity); } finally { encryptionState.getLock().unlock(); } }

Target:
protected MantaMultipartUploadPart uploadPart(final EncryptedMultipartUpload<WRAPPED_UPLOAD> upload, final int partNumber, final HttpEntity sourceEntity) throws IOException { Validate.notNull(upload, "Multipart upload object must not be null"); if (!upload.canUpload()) { String msg = "Multipart object is not in a state that it can be " + "used for uploading parts. For encrypted multipart " + "uploads, only multipart upload objects returned from " + "the initiateUpload() method can be used to upload parts."; throw new IllegalArgumentException(msg); } final EncryptionState encryptionState = upload.getEncryptionState(); final EncryptionContext encryptionContext = encryptionState.getEncryptionContext(); encryptionState.getLock().lock(); try { validatePartNumber(partNumber); if (encryptionState.getLastPartNumber() != -1) { Validate.isTrue(encryptionState.getLastPartNumber() + 1 == partNumber, "Encrypted MPU parts must be serial and sequential"); } else { encryptionState.setMultipartStream(new MultipartOutputStream( encryptionContext.getCipherDetails().getBlockSizeInBytes())); encryptionState.setCipherStream(EncryptingEntityHelper.makeCipherOutputForStream( encryptionState.getMultipartStream(), encryptionContext)); } final EncryptingPartEntity entity = new EncryptingPartEntity( encryptionState.getCipherStream(), encryptionState.getMultipartStream(), sourceEntity); encryptionState.setLastPartNumber(partNumber); return wrapped.uploadPart(upload.getWrapped(), partNumber, entity); } finally { encryptionState.getLock().unlock(); } }
Source:
private boolean sample(Span object) { if (sampler != null && sampler.sample(object.getName(), UUID.fromString(object.getTraceId()).getLeastSignificantBits(), object.getDuration())) { return true; } discardedSpansBySampler.inc(); return false; }

Target:
private boolean sample(Span object) { if (sampler.sample(object.getName(), UUID.fromString(object.getTraceId()).getLeastSignificantBits(), object.getDuration())) { return true; } discardedSpansBySampler.inc(); return false; }
Source:
private Map<String, AnalyzerDef> createDefaultAnalyzerDefinitions() { LuceneAnalyzerDefinitionRegistryBuilderImpl builder = new LuceneAnalyzerDefinitionRegistryBuilderImpl(); String providerClassName = cfg.getProperty( Environment.ANALYZER_DEFINITION_PROVIDER ); if ( providerClassName != null ) { LuceneAnalyzerDefinitionProvider provider; try { Class<?> providerClazz = ClassLoaderHelper.classForName( providerClassName, serviceManager ); provider = (LuceneAnalyzerDefinitionProvider) ReflectionHelper.createInstance( providerClazz, true ); } catch (RuntimeException e) { throw LOG.invalidLuceneAnalyzerDefinitionProvider( providerClassName, e ); } try { provider.register( builder ); } catch (SearchException e) { throw e; } catch (RuntimeException e) { throw LOG.invalidLuceneAnalyzerDefinitionProvider( providerClassName, e ); } } return builder.build(); }

Target:
private Map<String, AnalyzerDef> createDefaultAnalyzerDefinitions() { LuceneAnalyzerDefinitionRegistryBuilderImpl builder = new LuceneAnalyzerDefinitionRegistryBuilderImpl(); String providerClassName = cfg.getProperty( Environment.ANALYZER_DEFINITION_PROVIDER ); if ( providerClassName != null ) { LuceneAnalyzerDefinitionProvider provider; try { Class<?> providerClazz = ClassLoaderHelper.classForName( providerClassName, serviceManager ); provider = (LuceneAnalyzerDefinitionProvider) ReflectionHelper.createInstance( providerClazz, true ); } catch (RuntimeException e) { throw log.invalidLuceneAnalyzerDefinitionProvider( providerClassName, e ); } try { provider.register( builder ); } catch (SearchException e) { throw e; } catch (RuntimeException e) { throw log.invalidLuceneAnalyzerDefinitionProvider( providerClassName, e ); } } return builder.build(); }
Source:
public Collection<ExternalVnicProfileMapping> mapFromModel(VnicProfileMappings vnicProfileMappings) { return vnicProfileMappings != null && vnicProfileMappings.isSetVnicProfileMappings() ? vnicProfileMappings.getVnicProfileMappings() .stream() .map(this::mapSingleMappingEntry) .collect(Collectors.toList()) : Collections.emptyList(); }

Target:
public Collection<ExternalVnicProfileMapping> mapFromModel(VnicProfileMappings vnicProfileMappings) { return isVnicProfileMappingSupplied(vnicProfileMappings) ? mapMultipleMappings(vnicProfileMappings) : Collections.emptyList(); }
Source:
public List<T> getPossible(MediaType accept) { accept = new MediaType(accept.getType().toLowerCase(), accept.getSubtype().toLowerCase(), accept.getParameters()); List<Entry<T>> matches = new ArrayList<Entry<T>>(); if (accept.isWildcardType()) { ArrayList<T> copy = new ArrayList<T>(); copy.addAll(convert(all)); return copy; } else { matches.addAll(wildcards); SubtypeMap<T> indexed = index.get(accept.getType()); if (indexed != null) { matches.addAll(indexed.getPossible(accept)); } } Collections.sort(matches); return convert(matches); }

Target:
public List<T> getPossible(MediaType accept) { accept = new MediaType(accept.getType().toLowerCase(), accept.getSubtype().toLowerCase(), accept.getParameters()); List<Entry<T>> matches = new ArrayList<Entry<T>>(); if (accept.isWildcardType()) { return convert(all); } else { matches.addAll(wildcards); SubtypeMap<T> indexed = index.get(accept.getType()); if (indexed != null) { matches.addAll(indexed.getPossible(accept)); } } Collections.sort(matches); return convert(matches); }
Source:
HostLocation getHostLocation() { String dataCenter = "Unknown"; String rack = "Unknown"; String physicalHost = "Unknown"; try { Config config = ConfigFactory.parseFile(file); if (config.hasPath("dataCenter")) { dataCenter = config.getString("dataCenter"); } if (config.hasPath("rack")) { rack = config.getString("rack"); } if (config.hasPath("physicalHost")) { physicalHost = config.getString("physicalHost"); } } catch (Exception e) { log.warn("error getting host location from {}: {}", file.getName(), e); } return new HostLocation(dataCenter, rack, physicalHost); }

Target:
public HostLocation getHostLocation() { String dataCenter = "Unknown"; String rack = "Unknown"; String physicalHost = "Unknown"; try { Config config = ConfigFactory.parseFile(file); if (config.hasPath("dataCenter")) { dataCenter = config.getString("dataCenter"); } if (config.hasPath("rack")) { rack = config.getString("rack"); } if (config.hasPath("physicalHost")) { physicalHost = config.getString("physicalHost"); } } catch (Exception e) { log.warn("error getting host location from {}: ", file.getName(), e); } return new HostLocation(dataCenter, rack, physicalHost); }
Source:
void cancelAdditional() { transaction.setLoanId(loans.get(position).getLoan().getLoanId()); transaction.setTransactionAmount((!etCharges.getText().toString().isEmpty() ? Double.parseDouble(etCharges.getText().toString()) : 0) + (!etTotalDues.getText().toString().isEmpty() ? Double.parseDouble(etTotalDues.getText().toString()) : 0)); tableAdditional.setVisibility(View.GONE); transaction.setPaymentTypeId(null); transaction.setAccountNumber(null); transaction.setCheckNumber(null); transaction.setRoutingCode(null); transaction.setReceiptNumber(null); transaction.setBankNumber(null); sheetItemClickListener.onSaveAdditionalItem(transaction, position); }

Target:
private void cancelAdditional() { transaction.setLoanId(loans.get(position).getLoan().getLoanId()); transaction.setTransactionAmount((!etCharges.getText().toString().isEmpty() ? Double.parseDouble(etCharges.getText().toString()) : 0) + (!etTotalDues.getText().toString().isEmpty() ? Double.parseDouble(etTotalDues.getText().toString()) : 0)); tableAdditional.setVisibility(View.GONE); transaction.setPaymentTypeId(null); transaction.setAccountNumber(null); transaction.setCheckNumber(null); transaction.setRoutingCode(null); transaction.setReceiptNumber(null); transaction.setBankNumber(null); sheetItemClickListener.onSaveAdditionalItem(transaction, position); }
Source:
public PagedIterable<GHStargazer> listStargazers() { return new PagedIterable<GHStargazer>() { @Override public PagedIterator<GHStargazer> _iterator(int pageSize) { Requester requester = root.retrieve(); requester.setHeader("Accept", "application/vnd.github.v3.star+json"); return new PagedIterator<GHStargazer>(requester.asIterator(getApiTailUrl("stargazers"), GHStargazer[].class, pageSize)) { @Override protected void wrapUp(GHStargazer[] page) { for (GHStargazer c : page) { c.wrapUp(GHRepository.this); } } }; } }; }

Target:
public PagedIterable<GHUser> listStargazers() { return listUsers("stargazers"); }
Source:
public TimezoneCachingTest(String name) { super(name); try { Class.forName("org.postgresql.Driver"); } catch (Exception ex) { } }

Target:
public TimezoneCachingTest(String name) { super(name); }
Source:
public Response getCharge(@Auth String accountId, @PathParam(PAYMENT_KEY) String chargeId, @Context UriInfo uriInfo) { logger.info("received get payment request: [ ]", chargeId); Response connectorResponse = client.target(connectorUrl + "/v1/api/charges" + "/" + chargeId) .request() .get(); return responseFrom(uriInfo, connectorResponse, HttpStatus.SC_OK, (locationUrl, data) -> Response.ok(data), data -> notFoundResponse(logger, data)); }

Target:
public Response getCharge(@Auth String accountId, @PathParam(PAYMENT_KEY) String chargeId, @Context UriInfo uriInfo) { logger.info("received get payment request: [ ]", chargeId); Response connectorResponse = client.target(connectorUrl + CONNECTOR_CHARGES_RESOURCE + "/" + chargeId) .request() .get(); return responseFrom(uriInfo, connectorResponse, HttpStatus.SC_OK, (locationUrl, data) -> Response.ok(data), data -> notFoundResponse(logger, data)); }
Source:
public IClient build() { try { TrustManagerFactory trustManagerFactory = initTrustManagerFactory(certificateAlias, certificate); X509TrustManager trustManager = getCurrentTrustManager(trustManagerFactory); SSLContext sslContext = SSLUtils.getSSLContext(trustManager); ResponseCodeInterceptor responseCodeInterceptor = new ResponseCodeInterceptor(); OpenShiftAuthenticator authenticator = new OpenShiftAuthenticator(); OkHttpClient.Builder builder = new OkHttpClient.Builder() .addInterceptor(responseCodeInterceptor) .authenticator(authenticator) .readTimeout(readTimeout, readTimeoutUnit) .writeTimeout(writeTimeout, writeTimeoutUnit) .connectTimeout(connectTimeout, connectTimeoutUnit) .hostnameVerifier(this.sslCertificateCallback) .followRedirects(false) .followSslRedirects(false) .sslSocketFactory(sslContext.getSocketFactory(), trustManager); OkHttpClient okClient = builder.build(); IResourceFactory factory = defaultIfNull(resourceFactory, new ResourceFactory(null)); AuthorizationContext authContext = new AuthorizationContext(token, userName, password); DefaultClient client = new DefaultClient(new URL(this.baseUrl), okClient, factory, null, authContext); authContext.setClient(client); responseCodeInterceptor.setClient(client); authenticator.setClient(client); authenticator.setOkClient(okClient); return client; } catch (KeyManagementException | NoSuchAlgorithmException | KeyStoreException | CertificateException | IOException e) { throw new OpenShiftException(e, "Unable to initialize client"); } }

Target:
public IClient build() { try { TrustManagerFactory trustManagerFactory = initTrustManagerFactory(certificateAlias, certificate); X509TrustManager trustManager = getCurrentTrustManager(trustManagerFactory); SSLContext sslContext = SSLUtils.getSSLContext(trustManager); ResponseCodeInterceptor responseCodeInterceptor = new ResponseCodeInterceptor(); OpenShiftAuthenticator authenticator = new OpenShiftAuthenticator(); OkHttpClient.Builder builder = new OkHttpClient.Builder() .addInterceptor(responseCodeInterceptor) .authenticator(authenticator) .readTimeout(readTimeout, readTimeoutUnit) .writeTimeout(writeTimeout, writeTimeoutUnit) .connectTimeout(connectTimeout, connectTimeoutUnit) .hostnameVerifier(this.sslCertificateCallback) .sslSocketFactory(sslContext.getSocketFactory(), trustManager); OkHttpClient okClient = builder.build(); IResourceFactory factory = defaultIfNull(resourceFactory, new ResourceFactory(null)); AuthorizationContext authContext = new AuthorizationContext(token, userName, password); DefaultClient client = new DefaultClient(new URL(this.baseUrl), okClient, factory, null, authContext); authContext.setClient(client); responseCodeInterceptor.setClient(client); authenticator.setClient(client); authenticator.setOkClient(okClient); return client; } catch (KeyManagementException | NoSuchAlgorithmException | KeyStoreException | CertificateException | IOException e) { throw new OpenShiftException(e, "Unable to initialize client"); } }
Source:
static AssertionError counterexampleFound( String propertyName, Object[] args, long[] seeds, AssertionError e) { final String message = "Property named '%s' failed%s%n" + "With arguments: %s%n" + "Seeds for reproduction: %s"; return new AssertionError( String.format( message, propertyName, e.getMessage() == null ? ":" : " (" + e.getMessage() + "):", Arrays.deepToString(args), Arrays.toString(seeds)), e); }

Target:
static AssertionError counterexampleFound( String propertyName, Object[] args, long[] seeds, AssertionError e) { String message = "Property named '%s' failed%s%n" + "With arguments: %s%n" + "Seeds for reproduction: %s"; return new AssertionError( String.format( message, propertyName, e.getMessage() == null ? ":" : " (" + e.getMessage() + "):", Arrays.deepToString(args), Arrays.toString(seeds)), e); }
Source:
public void onMapReady(@NonNull final MapboxMap mapboxMap) { BathymetryActivity.this.mapboxMap = mapboxMap; mapboxMap.setStyle(Style.OUTDOORS, new Style.OnStyleLoaded() { @Override public void onStyleLoaded(@NonNull Style style) { mapboxMap.setLatLngBoundsForCameraTarget(LAKE_BOUNDS); mapboxMap.getStyle().removeLayer("water-label"); featureCollection = FeatureCollection.fromJson(loadGeoJsonFromAsset("bathymetry-data.geojson")); GeoJsonSource geoJsonSource = new GeoJsonSource(geojsonSourceId, featureCollection); mapboxMap.getStyle().addSource(geoJsonSource); setUpDepthFillLayers(); setUpDepthNumberSymbolLayer(); } }); }

Target:
public void onMapReady(@NonNull final MapboxMap mapboxMap) { mapboxMap.setStyle(Style.OUTDOORS, new Style.OnStyleLoaded() { @Override public void onStyleLoaded(@NonNull Style style) { mapboxMap.setLatLngBoundsForCameraTarget(LAKE_BOUNDS); style.removeLayer("water-label"); featureCollection = FeatureCollection.fromJson(loadGeoJsonFromAsset( "bathymetry-data.geojson")); style.addSource(new GeoJsonSource(GEOJSON_SOURCE_ID, featureCollection)); setUpDepthFillLayers(style); setUpDepthNumberSymbolLayer(style); } }); }
Source:
private Set<String> getMemberRoles(GatewayConfig gatewayConfig, SaltConnector sc) { Map<String, JsonNode> roles = SaltStates.getGrains(sc, new HostList(List.of(gatewayConfig.getHostname())), "roles"); return roles.entrySet().stream().findFirst() .map(Entry::getValue) .map(JsonNode::elements) .map(IteratorUtils::toList) .map(l -> (Set<String>) l.stream() .map(i -> ((JsonNode) i).asText()) .collect(Collectors.toSet()) ).orElse(Collections.emptySet()); }

Target:
private Set<String> getMemberRoles(GatewayConfig gatewayConfig, SaltConnector sc) { Map<String, JsonNode> roles = SaltStates.getGrains(sc, new HostList(List.of(gatewayConfig.getHostname())), "roles"); return roles.values().stream().findFirst() .map(GrainsJsonPropertyUtil::getPropertySet) .orElse(Collections.emptySet()); }
Source:
private boolean containsPolyNullNotAtTopLevel(AnnotatedTypeMirror t) { switch (t.getKind()) { case BOOLEAN: case BYTE: case CHAR: case DOUBLE: case FLOAT: case INT: case LONG: case SHORT: return false; case ARRAY: AnnotatedArrayType at = (AnnotatedArrayType) t; AnnotatedTypeMirror component = at.getComponentType(); return component.hasAnnotation(POLYNULL) || containsPolyNullNotAtTopLevel(component); case DECLARED: AnnotatedDeclaredType dt = (AnnotatedDeclaredType) t; for (AnnotatedTypeMirror typeArg : dt.getTypeArguments()) { if (typeArg.hasAnnotation(POLYNULL) || containsPolyNullNotAtTopLevel(typeArg)) { return true; } } return false; case WILDCARD: case TYPEVAR: return true; default: throw new BugInCF("Unexpected TypeKind %s for %s", t.getKind(), t); } }

Target:
private boolean containsPolyNullNotAtTopLevel(AnnotatedTypeMirror t) { return new ContainsPolyNullNotAtTopLevelScanner().visit(t); }
Source:
protected InputStream doGetInputStream() throws Exception { if (this.stat == null) { throw new FileSystemException("vfs.provider/read-not-file.error", getName()); } final byte[] data = (this.stat.getDataLength() == 0) ? new byte[0] : framework.getData().forPath(this.path); return new ByteArrayInputStream(data); }

Target:
protected InputStream doGetInputStream() throws Exception { if (this.stat == null) { throw new FileSystemException("vfs.provider/read-not-file.error", getName()); } final byte[] data = this.stat.getDataLength() == 0 ? new byte[0] : framework.getData().forPath(this.path); return new ByteArrayInputStream(data); }