auphong2707/dl4se-code-review-dataset huggingface dataset:
Source:
Tracing tracing( @Value("${spring.zipkin.service.name:${spring.application.name:default}}") String serviceName, Propagation.Factory factory, CurrentTraceContext currentTraceContext, Reporter<zipkin2.Span> reporter, Sampler sampler, ErrorParser errorParser, SleuthProperties sleuthProperties) { Tracing.Builder builder = Tracing.newBuilder().sampler(sampler) .errorParser(errorParser) .localServiceName( "".equals(serviceName) ? DEFAULT_SERVICE_NAME : serviceName) .propagationFactory(factory).currentTraceContext(currentTraceContext) .spanReporter(adjustedReporter(reporter)) .traceId128Bit(sleuthProperties.isTraceId128()) .supportsJoin(sleuthProperties.isSupportsJoin()); for (FinishedSpanHandler finishedSpanHandlerFactory : this.finishedSpanHandlers) { builder.addFinishedSpanHandler(finishedSpanHandlerFactory); } return builder.build(); }

Target:
Tracing tracing( @Value("${spring.zipkin.service.name:${spring.application.name:default}}") String serviceName, Propagation.Factory factory, CurrentTraceContext currentTraceContext, Reporter<zipkin2.Span> reporter, Sampler sampler, ErrorParser errorParser, SleuthProperties sleuthProperties) { Tracing.Builder builder = Tracing.newBuilder().sampler(sampler) .errorParser(errorParser) .localServiceName(StringUtils.isEmpty(serviceName) ? DEFAULT_SERVICE_NAME : serviceName) .propagationFactory(factory).currentTraceContext(currentTraceContext) .spanReporter(adjustedReporter(reporter)) .traceId128Bit(sleuthProperties.isTraceId128()) .supportsJoin(sleuthProperties.isSupportsJoin()); for (FinishedSpanHandler finishedSpanHandlerFactory : this.finishedSpanHandlers) { builder.addFinishedSpanHandler(finishedSpanHandlerFactory); } return builder.build(); }
Source:
public EventData addContext(String key, Object value) { Objects.requireNonNull(key); Objects.requireNonNull(value); this.context = context.addData(key, value); return this; }

Target:
public EventData addContext(String key, Object value) { Objects.requireNonNull(key, "The 'key' parameter cannot be null."); Objects.requireNonNull(value, "The 'value' parameter cannot be null."); this.context = context.addData(key, value); return this; }
Source:
public HQLQueryPlan getHQLQueryPlan(String queryString, boolean shallow, Map<String,Filter> enabledFilters) throws QueryException, MappingException { final HQLQueryPlanKey key = new HQLQueryPlanKey( queryString, shallow, enabledFilters ); HQLQueryPlan value = (HQLQueryPlan) queryPlanCache.get( key ); boolean stats = factory.getStatistics().isStatisticsEnabled(); if ( value == null ) { final long startTime = System.nanoTime(); LOG.tracev( "Unable to locate HQL query plan in cache; generating ({0})", queryString ); value = new HQLQueryPlan( queryString, shallow, enabledFilters, factory ); if ( stats ) { final long endTime = System.nanoTime(); final long microseconds = TimeUnit.MICROSECONDS.convert( endTime - startTime, TimeUnit.NANOSECONDS ); factory.getStatistics().queryCompiled( queryString, microseconds ); } queryPlanCache.putIfAbsent( key, value ); } else { LOG.tracev( "Located HQL query plan in cache ({0})", queryString ); if(stats) { factory.getStatistics().queryPlanCacheHit( queryString ); } } return value; }

Target:
public HQLQueryPlan getHQLQueryPlan(String queryString, boolean shallow, Map<String, Filter> enabledFilters) throws QueryException, MappingException { final HQLQueryPlanKey key = new HQLQueryPlanKey( queryString, shallow, enabledFilters ); HQLQueryPlan value = (HQLQueryPlan) queryPlanCache.get( key ); boolean stats = factory.getStatistics().isStatisticsEnabled(); if ( value == null ) { final long startTime = ( stats ) ? System.nanoTime() : 0L; LOG.tracev( "Unable to locate HQL query plan in cache; generating ({0})", queryString ); value = new HQLQueryPlan( queryString, shallow, enabledFilters, factory ); if ( stats ) { final long endTime = System.nanoTime(); final long microseconds = TimeUnit.MICROSECONDS.convert( endTime - startTime, TimeUnit.NANOSECONDS ); factory.getStatistics().queryCompiled( queryString, microseconds ); } queryPlanCache.putIfAbsent( key, value ); } else { LOG.tracev( "Located HQL query plan in cache ({0})", queryString ); if ( stats ) { factory.getStatistics().queryPlanCacheHit( queryString ); } } return value; }
Source:
private int containsFunctionByIds(Set<Integer> functionIds) { if (this instanceof AbstractValueExpression) { return -1; } List<AbstractExpression> functionsList = findAllFunctionSubexpressions(); for (AbstractExpression funcExpr : functionsList) { assert (funcExpr instanceof FunctionExpression); if (functionIds.contains(((FunctionExpression) funcExpr).getFunctionId())) { return ((FunctionExpression) funcExpr).getFunctionId(); } } return -1; }

Target:
private int containsFunctionByIds(Set<Integer> functionIds) { List<AbstractExpression> functionsList = findAllFunctionSubexpressions(); for (AbstractExpression funcExpr : functionsList) { assert (funcExpr instanceof FunctionExpression); if (functionIds.contains(((FunctionExpression) funcExpr).getFunctionId())) { return ((FunctionExpression) funcExpr).getFunctionId(); } } return -1; }
Source:
private void performRename(ExecutionEvent event) { Shell activeShell= HandlerUtil.getActiveShell(event); Object newNameValue= HandlerUtil.getVariable(event, LTK_RENAME_COMMAND_NEWNAME_PARAMETER_KEY); String newName= null; if (newNameValue instanceof String) { newName= (String) newNameValue; } else if (newNameValue != null) { RefactoringUIPlugin.logErrorMessage(NLS.bind(RefactoringUIMessages.RenameResourceHandler_ERROR_EXPECTED_STRING, newNameValue.getClass().getName())); } ISelection sel= HandlerUtil.getCurrentSelection(event); if (sel instanceof IStructuredSelection) { IResource resource= getCurrentResource((IStructuredSelection) sel); if (resource != null) { RenameResourceWizard refactoringWizard; Change change= null; RefactoringProcessor processor= null; if (newName != null) { refactoringWizard= new RenameResourceWizard(resource, newName); processor= ((ProcessorBasedRefactoring) refactoringWizard.getRefactoring()).getProcessor(); change= getChange(refactoringWizard); refactoringWizard= new RenameResourceWizard(resource, newName); } else { refactoringWizard= new RenameResourceWizard(resource); } try { if (newName == null || change == null || isCompositeChange(change) || !(processor instanceof RenameResourceProcessor)) { RefactoringWizardOpenOperation op= new RefactoringWizardOpenOperation(refactoringWizard); op.run(activeShell, RefactoringUIMessages.RenameResourceHandler_title); } else { change.perform(new NullProgressMonitor()); } } catch (InterruptedException e) { } catch (CoreException e) { RefactoringUIPlugin.log(e); } } } }

Target:
private void performRename(ExecutionEvent event) { Shell activeShell= HandlerUtil.getActiveShell(event); Object newNameValue= HandlerUtil.getVariable(event, LTK_RENAME_COMMAND_NEWNAME_PARAMETER_KEY); String newName= null; if (newNameValue instanceof String) { newName= (String) newNameValue; } ISelection sel= HandlerUtil.getCurrentSelection(event); if (sel instanceof IStructuredSelection) { IResource resource= getCurrentResource((IStructuredSelection) sel); if (resource != null) { RenameResourceWizard refactoringWizard; Change change= null; RefactoringProcessor processor= null; if (newName != null) { refactoringWizard= new RenameResourceWizard(resource, newName); processor= ((ProcessorBasedRefactoring) refactoringWizard.getRefactoring()).getProcessor(); change= getChange(refactoringWizard); refactoringWizard= new RenameResourceWizard(resource, newName); } else { refactoringWizard= new RenameResourceWizard(resource); } try { if (newName == null || change == null || isCompositeChange(change) || !(processor instanceof RenameResourceProcessor)) { RefactoringWizardOpenOperation op= new RefactoringWizardOpenOperation(refactoringWizard); op.run(activeShell, RefactoringUIMessages.RenameResourceHandler_title); } else { change.perform(new NullProgressMonitor()); } } catch (InterruptedException e) { } catch (CoreException e) { RefactoringUIPlugin.log(e); } } } }
Source:
private Map<StudyFilters, String> setParameters(final String programDbId, final String locationDbId, final String sortByField, final String sortOrder) { final Map<StudyFilters, String> parametersMap = new EnumMap<>(StudyFilters.class); if (!StringUtils.isBlank(programDbId)) { parametersMap.put(StudyFilters.PROGRAM_ID, programDbId); } if (!StringUtils.isBlank(locationDbId)) { parametersMap.put(StudyFilters.LOCATION_ID, locationDbId); } if (!StringUtils.isBlank(sortByField)) { parametersMap.put(StudyFilters.SORT_BY_FIELD, translateNameField(sortByField)); } else { parametersMap.put(StudyFilters.SORT_BY_FIELD, "projectId"); } if (StringUtils.isBlank(sortOrder) || TrialResourceBrapi.ASCENDING.equalsIgnoreCase(sortOrder)) { parametersMap.put(StudyFilters.ORDER, "asc"); } else if (!StringUtils.isBlank(sortOrder) && TrialResourceBrapi.DESCENDING.equalsIgnoreCase(sortOrder)) { parametersMap.put(StudyFilters.ORDER, "desc"); } return parametersMap; }

Target:
private Map<StudyFilters, String> setParameters(final String programDbId, final String locationDbId, final String sortByField, final String sortOrder) { final Map<StudyFilters, String> parametersMap = new EnumMap<>(StudyFilters.class); if (!StringUtils.isBlank(programDbId)) { parametersMap.put(StudyFilters.PROGRAM_ID, programDbId); } if (!StringUtils.isBlank(locationDbId)) { parametersMap.put(StudyFilters.LOCATION_ID, locationDbId); } if (!StringUtils.isBlank(sortByField) && "trialName".equals(sortByField)) { parametersMap.put(StudyFilters.SORT_BY_FIELD, "name"); } else { parametersMap.put(StudyFilters.SORT_BY_FIELD, "projectId"); } if (StringUtils.isBlank(sortOrder) || TrialResourceBrapi.ORDER_BY_ASCENDING.equalsIgnoreCase(sortOrder)) { parametersMap.put(StudyFilters.ORDER, "asc"); } else if (!StringUtils.isBlank(sortOrder) && TrialResourceBrapi.ORDER_BY_DESCENDING.equalsIgnoreCase(sortOrder)) { parametersMap.put(StudyFilters.ORDER, "desc"); } return parametersMap; }
Source:
public ScalarFunctionImplementation specialize(BoundVariables boundVariables, int arity, TypeManager typeManager, FunctionManager functionManager) { checkArgument(arity == 1, "Expected arity to be 1"); Type fromType = boundVariables.getTypeVariable("F"); Type toType = boundVariables.getTypeVariable("T"); FunctionHandle functionHandle = functionManager.lookupCast(fromOperatorType(CAST), fromType.getTypeSignature(), toType.getTypeSignature()); ScalarFunctionImplementation function = functionManager.getScalarFunctionImplementation(functionHandle); Class<?> castOperatorClass = generateArrayCast(typeManager, functionHandle.getSignature(), function); MethodHandle methodHandle = methodHandle(castOperatorClass, "castArray", ConnectorSession.class, Block.class); return new ScalarFunctionImplementation( false, ImmutableList.of( valueTypeArgumentProperty(RETURN_NULL_ON_NULL), valueTypeArgumentProperty(RETURN_NULL_ON_NULL)), methodHandle, isDeterministic()); }

Target:
public ScalarFunctionImplementation specialize(BoundVariables boundVariables, int arity, TypeManager typeManager, FunctionManager functionManager) { checkArgument(arity == 1, "Expected arity to be 1"); Type fromType = boundVariables.getTypeVariable("F"); Type toType = boundVariables.getTypeVariable("T"); FunctionHandle functionHandle = functionManager.lookupCast(CastType.CAST, fromType.getTypeSignature(), toType.getTypeSignature()); ScalarFunctionImplementation function = functionManager.getScalarFunctionImplementation(functionHandle); Class<?> castOperatorClass = generateArrayCast(typeManager, functionHandle.getSignature(), function); MethodHandle methodHandle = methodHandle(castOperatorClass, "castArray", ConnectorSession.class, Block.class); return new ScalarFunctionImplementation( false, ImmutableList.of( valueTypeArgumentProperty(RETURN_NULL_ON_NULL), valueTypeArgumentProperty(RETURN_NULL_ON_NULL)), methodHandle, isDeterministic()); }
Source:
public void testExternalResourseIsSavedInCache() throws IOException { final Configuration config = new DefaultConfiguration("myName"); final String filePath = temporaryFolder.newFile().getPath(); final PropertyCacheFile cache = new PropertyCacheFile(config, filePath); cache.load(); final Set<String> resources = new HashSet<>(); final String pathToResource = "src/test/resources/com/puppycrawl/tools/checkstyle/externalResourse.tmp"; resources.add(pathToResource); cache.putExternalResources(resources); assertEquals("42BA2739D95DF52BDD2C1E50387109CE81EA60DC", cache.get("module-resource*?:" + pathToResource)); }

Target:
public void testExternalResourseIsSavedInCache() throws IOException { final Configuration config = new DefaultConfiguration("myName"); final String filePath = temporaryFolder.newFile().getPath(); final PropertyCacheFile cache = new PropertyCacheFile(config, filePath); cache.load(); final Set<String> resources = new HashSet<>(); final String pathToResource = "src/test/resources/com/puppycrawl/tools/checkstyle/externalResourse.tmp"; resources.add(pathToResource); cache.putExternalResources(resources); assertFalse(cache.get("module-resource*?:" + pathToResource).isEmpty()); }
Source:
private static CommandStatus executeSync(Command command, CommandLine commandLine) { CommandStatus commandStatus = new CommandStatus(new LinuxExitValue(0)); commandStatus.setOutputStream(command.getOutputStream()); commandStatus.setErrorStream(command.getErrorStream()); commandStatus.setInputStream(command.getInputStream()); DefaultExecutor executor = configureExecutor(command); int exitStatus = 0; logger.debug("Executing: {}", commandLine); try { Map<String, String> environment = command.getEnvironment(); if (environment != null && !environment.isEmpty()) { Map<String, String> currentEnv = EnvironmentUtils.getProcEnvironment(); currentEnv.putAll(environment); exitStatus = executor.execute(commandLine, currentEnv); } else { exitStatus = executor.execute(commandLine); } } catch (ExecuteException e) { exitStatus = e.getExitValue(); logger.debug(COMMAND + commandLine + " returned error code " + exitStatus, e); } catch (IOException e) { exitStatus = 1; logger.error(COMMAND + commandLine + " failed", e); } finally { commandStatus.setExitStatus(new LinuxExitValue(exitStatus)); commandStatus.setTimedout(executor.getWatchdog().killedProcess()); } return commandStatus; }

Target:
private static CommandStatus executeSync(Command command, CommandLine commandLine) { CommandStatus commandStatus = new CommandStatus(new LinuxExitValue(0)); commandStatus.setOutputStream(command.getOutputStream()); commandStatus.setErrorStream(command.getErrorStream()); commandStatus.setInputStream(command.getInputStream()); DefaultExecutor executor = configureExecutor(command); int exitStatus = 0; logger.debug("Executing: {}", commandLine); try { Map<String, String> environment = command.getEnvironment(); if (environment != null && !environment.isEmpty()) { Map<String, String> currentEnv = EnvironmentUtils.getProcEnvironment(); currentEnv.putAll(environment); exitStatus = executor.execute(commandLine, currentEnv); } else { exitStatus = executor.execute(commandLine); } } catch (ExecuteException e) { exitStatus = e.getExitValue(); logger.debug(COMMAND_MESSAGE + " returned error code {}", commandLine, exitStatus, e); } catch (IOException e) { exitStatus = 1; logger.error(COMMAND_MESSAGE + " failed", commandLine, e); } finally { commandStatus.setExitStatus(new LinuxExitValue(exitStatus)); commandStatus.setTimedout(executor.getWatchdog().killedProcess()); } return commandStatus; }
Source:
public ColumnStatisticMetadata deserializeKey(String key, DeserializationContext ctxt) { verify(key != null, "key is null"); return deserialize(key); }

Target:
public ColumnStatisticMetadata deserializeKey(String key, DeserializationContext ctxt) { return deserialize(requireNonNull(key, "key is null")); }
Source:
private Boolean hasAffinityForJvm(){ return this.clConfig.getWorkerAlias().equals(this.affinity); }

Target:
private boolean hasAffinityForJvm() throws Exception{ return (affinity.isPresent() && clConfig.getWorkerAlias().equals(affinity.get())); }
Source:
protected boolean canDoAction() { UserProfile dbProfile = userProfileDao.getByUserId(getUserId()); if (dbProfile == null) { return failCanDoAction(EngineMessage.ACTION_TYPE_FAILED_PROFILE_NOT_EXIST); } return true; }

Target:
protected boolean canDoAction() { if (profile == null) { return failCanDoAction(EngineMessage.ACTION_TYPE_FAILED_PROFILE_NOT_EXIST); } return true; }
Source:
public CloseableReference<Bitmap> decodeJPEGFromEncodedImageWithColorSpace( final EncodedImage encodedImage, Bitmap.Config bitmapConfig, @Nullable Rect regionToDecode, int length, @Nullable final ColorSpace colorSpace) { BitmapFactory.Options options = getBitmapFactoryOptions( encodedImage.getSampleSize(), bitmapConfig); if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.O) { options.inPreferredColorSpace = colorSpace == null ? ColorSpace.get(ColorSpace.Named.SRGB) : colorSpace; } final CloseableReference<PooledByteBuffer> bytesRef = encodedImage.getByteBufferRef(); Preconditions.checkNotNull(bytesRef); try { Bitmap bitmap = decodeJPEGByteArrayAsPurgeable(bytesRef, length, options); return pinBitmap(bitmap); } finally { CloseableReference.closeSafely(bytesRef); } }

Target:
public CloseableReference<Bitmap> decodeJPEGFromEncodedImageWithColorSpace( final EncodedImage encodedImage, Bitmap.Config bitmapConfig, @Nullable Rect regionToDecode, int length, @Nullable final ColorSpace colorSpace) { BitmapFactory.Options options = getBitmapFactoryOptions( encodedImage.getSampleSize(), bitmapConfig); if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.O) { OreoUtils.setColorSpace(options, colorSpace); } final CloseableReference<PooledByteBuffer> bytesRef = encodedImage.getByteBufferRef(); Preconditions.checkNotNull(bytesRef); try { Bitmap bitmap = decodeJPEGByteArrayAsPurgeable(bytesRef, length, options); return pinBitmap(bitmap); } finally { CloseableReference.closeSafely(bytesRef); } }
Source:
public void postsListLoads() { PostsListPage postsList = new PostsListPage(driver).open(); postsList.isPostListNotEmpty(); }

Target:
public void postsListLoads() { PostsListPage postsList = new PostsListPage(driver).open(); Assertion.assertFalse(postsList.isPostListEmpty()); }
Source:
public boolean isSubtype( final AnnotatedTypeMirror subtype, final AnnotatedTypeMirror supertype) { if (subtype.atypeFactory.ignoreUninferredTypeArguments && (subtype.containsUninferredTypeArguments() || supertype.containsUninferredTypeArguments())) { if (ignoreUninferredTypeArgument(subtype) || ignoreUninferredTypeArgument(supertype)) { return true; } for (final AnnotationMirror top : qualifierHierarchy.getTopAnnotations()) { AnnotationMirror subAnno = subtype.getAnnotationInHierarchy(top); AnnotationMirror superAnno = supertype.getAnnotationInHierarchy(top); if (subAnno != null && superAnno != null && !qualifierHierarchy.isSubtype(subAnno, superAnno)) { return false; } } return true; } for (final AnnotationMirror top : qualifierHierarchy.getTopAnnotations()) { if (!isSubtype(subtype, supertype, top)) { return false; } } return true; }

Target:
public boolean isSubtype( final AnnotatedTypeMirror subtype, final AnnotatedTypeMirror supertype) { for (final AnnotationMirror top : qualifierHierarchy.getTopAnnotations()) { if (!isSubtype(subtype, supertype, top)) { return false; } } return true; }
Source:
private void testCodec(final int offset, final int k, final int[] values, final byte[] expected) throws IOException { try (final ByteArrayOutputStream os = new ByteArrayOutputStream(); final BitOutputStream bos = new DefaultBitOutputStream(os)) { final CRAMCodec<Integer> writeCodec = new SubexponentialIntegerCodec(null, bos, offset, k); for (final int value : values) { writeCodec.write(value); } bos.flush(); final byte[] writtenOut = os.toByteArray(); Assert.assertEquals(writtenOut, expected); final int[] readBack = new int[values.length]; try (final InputStream is = new ByteArrayInputStream(writtenOut); final DefaultBitInputStream dbis = new DefaultBitInputStream(is)) { final CRAMCodec<Integer> readCodec = new SubexponentialIntegerCodec(dbis, null, offset, k); for (int i = 0; i < values.length; i++) { readBack[i] = readCodec.read(); } } Assert.assertEquals(readBack, values); } }

Target:
private void testCodec(final int offset, final int k, final int[] values, final byte[] expected) throws IOException { byte[] writtenOut; try (final ByteArrayOutputStream os = new ByteArrayOutputStream(); final BitOutputStream bos = new DefaultBitOutputStream(os)) { final CRAMCodec<Integer> writeCodec = new SubexponentialIntegerCodec(null, bos, offset, k); for (final int value : values) { writeCodec.write(value); } bos.flush(); writtenOut = os.toByteArray(); Assert.assertEquals(writtenOut, expected); } final int[] readBack = new int[values.length]; try (final InputStream is = new ByteArrayInputStream(writtenOut); final DefaultBitInputStream dbis = new DefaultBitInputStream(is)) { final CRAMCodec<Integer> readCodec = new SubexponentialIntegerCodec(dbis, null, offset, k); for (int i = 0; i < values.length; i++) { readBack[i] = readCodec.read(); } } Assert.assertEquals(readBack, values); }
Source:
HelixAdmin getHelixAdmin(String zkAddr) { return new ZKHelixAdmin(zkAddr); }

Target:
HelixAdmin getHelixAdmin(String zkAddr) { return new HelixAdminFactory().getHelixAdmin(zkAddr); }
Source:
public Iterable<ITmfEventAspect<?>> getEventAspects() { Collection<ITmfEventAspect<?>> retval = fAspects; if (retval == null && fInited) { ImmutableList.Builder<ITmfEventAspect<?>> builder = new Builder<>(); builder.addAll(LTTNG_KERNEL_ASPECTS); ImmutableSet.Builder<NumericalAspect> perfBuilder = new ImmutableSet.Builder<>(); for (CtfTmfEventType eventType : getContainedEventTypes()) { for (String fieldName : eventType.getFieldNames()) { if (fieldName != null) { if (CONTEXT_PERF_CPU.matcher(fieldName).matches()) { perfBuilder.add(new CpuPerfAspect(fieldName)); } else if (CONTEXT_PERF_THREAD.matcher(fieldName).matches()) { perfBuilder.add(new ThreadPerfAspect(fieldName)); } else if (CONTEXT_PERF_UNKNOWN.matcher(fieldName).matches()) { perfBuilder.add(new PerfCounterAspect(fieldName)); } } } } builder.addAll(perfBuilder.build()); retval = builder.build(); fAspects = retval; } return retval; }

Target:
public Iterable<ITmfEventAspect<?>> getEventAspects() { Collection<ITmfEventAspect<?>> aspects = fAspects; if (aspects == null && fInited) { ImmutableList.Builder<ITmfEventAspect<?>> builder = new Builder<>(); builder.addAll(LTTNG_KERNEL_ASPECTS); builder.addAll(createCounterAspects()); aspects = builder.build(); fAspects = aspects; } return aspects != null ? aspects : Collections.emptyList(); }
Source:
public SpongeSneakingData(boolean sneaking) { super(SneakingData.class, Boolean.valueOf(sneaking), Keys.IS_SNEAKING); }

Target:
public SpongeSneakingData(boolean sneaking) { super(SneakingData.class, sneaking, Keys.IS_SNEAKING, ImmutableSpongeSneakingData.class); }
Source:
public void checkContentMergeBinaries(MergeStrategy strategy) throws Exception { Git git = Git.wrap(db); final int LINELEN = 72; byte[] binary = new byte[LINELEN * 2000]; for (int i = 0; i < binary.length; i++) { binary[i] = (byte)((i % LINELEN) == 0 ? '\n' : 'x'); } binary[LINELEN * 1000 + 1] = '\0'; writeTrashFile("file", new String(binary, "UTF-8")); git.add().addFilepattern("file").call(); RevCommit first = git.commit().setMessage("added file").call(); int idx = LINELEN * 1200 + 1; byte save = binary[idx]; binary[idx] = '@'; writeTrashFile("file", new String(binary, "UTF-8")); binary[idx] = save; git.add().addFilepattern("file").call(); RevCommit masterCommit = git.commit().setAll(true) .setMessage("modified file l 1200").call(); git.checkout().setCreateBranch(true).setStartPoint(first).setName("side").call(); binary[LINELEN * 1500 + 1] = '!'; writeTrashFile("file", new String(binary, "UTF-8")); git.add().addFilepattern("file").call(); RevCommit sideCommit = git.commit().setAll(true) .setMessage("modified file l 1500").call(); try (ObjectInserter ins = db.newObjectInserter()) { ResolveMerger merger = (ResolveMerger) strategy.newMerger(ins, db.getConfig()); boolean noProblems = merger.merge(masterCommit, sideCommit); assertFalse(noProblems); } }

Target:
public void checkContentMergeBinaries(MergeStrategy strategy) throws Exception { Git git = Git.wrap(db); final int LINELEN = 72; byte[] binary = new byte[LINELEN * 2000]; for (int i = 0; i < binary.length; i++) { binary[i] = (byte)((i % LINELEN) == 0 ? '\n' : 'x'); } binary[LINELEN * 1000 + 1] = '\0'; writeTrashFile("file", new String(binary, StandardCharsets.UTF_8)); git.add().addFilepattern("file").call(); RevCommit first = git.commit().setMessage("added file").call(); int idx = LINELEN * 1200 + 1; byte save = binary[idx]; binary[idx] = '@'; writeTrashFile("file", new String(binary, StandardCharsets.UTF_8)); binary[idx] = save; git.add().addFilepattern("file").call(); RevCommit masterCommit = git.commit().setAll(true) .setMessage("modified file l 1200").call(); git.checkout().setCreateBranch(true).setStartPoint(first).setName("side").call(); binary[LINELEN * 1500 + 1] = '!'; writeTrashFile("file", new String(binary, StandardCharsets.UTF_8)); git.add().addFilepattern("file").call(); RevCommit sideCommit = git.commit().setAll(true) .setMessage("modified file l 1500").call(); try (ObjectInserter ins = db.newObjectInserter()) { ResolveMerger merger = (ResolveMerger) strategy.newMerger(ins, db.getConfig()); boolean noProblems = merger.merge(masterCommit, sideCommit); assertFalse(noProblems); } }
Source:
public long lockBlock(long sessionId, long blockId, BlockLockType blockLockType) { ClientRWLock blockLock = getBlockLock(blockId); Lock lock; if (blockLockType == BlockLockType.READ) { lock = blockLock.readLock(); } else { if (sessionHoldsLock(sessionId, blockId)) { throw new IllegalStateException(String .format("Session %s attempted to take a write lock on block %s, but the session already" + " holds a lock on the block", sessionId, blockId)); } lock = blockLock.writeLock(); } try { if (!lock.tryLock(1L, TimeUnit.MINUTES)) { LOG.warn("tryLock block for session failed after 1 min, " + "lock reference count = {}", blockLockType, blockId, sessionId, blockLock.getReferenceCount()); lock.lock(); } } catch (InterruptedException e) { Thread.currentThread().interrupt(); lock.lock(); } try { long lockId = LOCK_ID_GEN.getAndIncrement(); try (LockResource r = new LockResource(mSharedMapsLock.writeLock())) { mLockIdToRecordMap.put(lockId, new LockRecord(sessionId, blockId, lock)); Set<Long> sessionLockIds = mSessionIdToLockIdsMap.get(sessionId); if (sessionLockIds == null) { mSessionIdToLockIdsMap.put(sessionId, Sets.newHashSet(lockId)); } else { sessionLockIds.add(lockId); } } return lockId; } catch (Throwable e) { unlock(lock, blockId); throw e; } }

Target:
public long lockBlock(long sessionId, long blockId, BlockLockType blockLockType) { ClientRWLock blockLock = getBlockLock(blockId); Lock lock; if (blockLockType == BlockLockType.READ) { lock = blockLock.readLock(); } else { if (sessionHoldsLock(sessionId, blockId)) { throw new IllegalStateException(String .format("Session %s attempted to take a write lock on block %s, but the session already" + " holds a lock on the block", sessionId, blockId)); } lock = blockLock.writeLock(); } lock.lock(); try { long lockId = LOCK_ID_GEN.getAndIncrement(); try (LockResource r = new LockResource(mSharedMapsLock.writeLock())) { mLockIdToRecordMap.put(lockId, new LockRecord(sessionId, blockId, lock)); Set<Long> sessionLockIds = mSessionIdToLockIdsMap.get(sessionId); if (sessionLockIds == null) { mSessionIdToLockIdsMap.put(sessionId, Sets.newHashSet(lockId)); } else { sessionLockIds.add(lockId); } } return lockId; } catch (Throwable e) { unlock(lock, blockId); throw e; } }
Source:
public void deleteVideo(){ executeScript("$('div.WikiaGrid div:nth-child(1).grid-2 .remove').show()"); newestVideoDeleteIcon.click(); deleteConfirmButton.click(); }

Target:
public void deleteVideo(){ executeScript("$('div.WikiaGrid div:nth-child(1).grid-2 .remove').show()"); waitForElementByElement(newestVideo); newestVideoDeleteIcon.click(); waitForElementByElement(deleteConfirmButton); deleteConfirmButton.click(); }
Source:
public void testCloseNoForce() throws Exception { WriteHandle lh = result(bkc.newCreateLedgerOp() .withEnsembleSize(1) .withWriteQuorumSize(1) .withAckQuorumSize(1) .withWriteFlags(WriteFlag.DEFERRED_SYNC) .withDigestType(org.apache.bookkeeper.client.api.DigestType.CRC32C) .withPassword(new byte[0]) .execute()); int n = 10; long ledgerId = lh.getId(); for (int i = 0; i < n; i++) { lh.append(("entry-" + i).getBytes()); } assertEquals(-1, lh.getLastAddConfirmed()); lh.close(); restartBookies(); try (ReadHandle readLh = result(bkc.newOpenLedgerOp() .withLedgerId(ledgerId) .withRecovery(true) .withPassword(new byte[0]) .execute());) { assertEquals(-1, readLh.getLastAddConfirmed()); } }

Target:
public void testCloseNoForce() throws Exception { testClose(true); }
Source:
final public boolean equals(Object obj) { if (obj == this) { return true; } else if (obj instanceof ModuleAdapter<?>) { ModuleAdapter<?> that = (ModuleAdapter<?>) obj; return this.moduleClass.equals(that.moduleClass); } else { return false; } }

Target:
public final boolean equals(Object obj) { if (obj == this) { return true; } else if (obj instanceof ModuleAdapter<?>) { ModuleAdapter<?> that = (ModuleAdapter<?>) obj; return this.moduleClass.equals(that.moduleClass); } else { return false; } }
Source:
public void resendVerification(Study study, ChannelType type, String userId) { checkNotNull(study); checkArgument(isNotBlank(userId)); StudyParticipant participant = getParticipant(study, userId, false); if (type == ChannelType.EMAIL && participant.getEmail() != null) { AccountId accountId = AccountId.forEmail(study.getIdentifier(), participant.getEmail()); accountWorkflowService.resendVerificationToken(type, accountId); } else if (type == ChannelType.PHONE && participant.getPhone() != null) { AccountId accountId = AccountId.forPhone(study.getIdentifier(), participant.getPhone()); accountWorkflowService.resendVerificationToken(type, accountId); } }

Target:
public void resendVerification(Study study, ChannelType type, String userId) { checkNotNull(study); checkArgument(isNotBlank(userId)); StudyParticipant participant = getParticipant(study, userId, false); if (type == ChannelType.EMAIL) { if (participant.getEmail() != null) { AccountId accountId = AccountId.forEmail(study.getIdentifier(), participant.getEmail()); accountWorkflowService.resendVerificationToken(type, accountId); } } else if (type == ChannelType.PHONE) { if (participant.getPhone() != null) { AccountId accountId = AccountId.forPhone(study.getIdentifier(), participant.getPhone()); accountWorkflowService.resendVerificationToken(type, accountId); } } else { throw new UnsupportedOperationException("Channel type not implemented"); } }
Source:
public String convert(final BindingSet bindingSet, final VariableOrder varOrder) { requireNonNull(bindingSet); requireNonNull(varOrder); if(bindingSet.getBindingNames().isEmpty()) { return ""; } final List<String> bindingStrings = new ArrayList<>(); for(final String varName : varOrder) { if(bindingSet.hasBinding(varName)) { final Value value = bindingSet.getBinding(varName).getValue(); final RyaType ryaValue = RdfToRyaConversions.convertValue(value); final String bindingString = ryaValue.getData() + TYPE_DELIM + ryaValue.getDataType(); bindingStrings.add(bindingString); } else { bindingStrings.add(NULL_VALUE_STRING); } } return Joiner.on(BINDING_DELIM).join(bindingStrings); }

Target:
public String convert(final BindingSet bindingSet, final VariableOrder varOrder) { requireNonNull(bindingSet); requireNonNull(varOrder); final List<String> bindingStrings = new ArrayList<>(); for(final String varName : varOrder) { if(bindingSet.hasBinding(varName)) { final Value value = bindingSet.getBinding(varName).getValue(); final RyaType ryaValue = RdfToRyaConversions.convertValue(value); final String bindingString = ryaValue.getData() + TYPE_DELIM + ryaValue.getDataType(); bindingStrings.add(bindingString); } else { bindingStrings.add(NULL_VALUE_STRING); } } return Joiner.on(BINDING_DELIM).join(bindingStrings); }
Source:
public Object[] getUserAndServerUrl(RealmConfiguration config) { if (config instanceof SyncConfiguration) { SyncConfiguration syncConfig = (SyncConfiguration) config; SyncUser user = syncConfig.getUser(); if (!user.isValid()) { if (user.isLoggedOut()) { throw new IllegalStateException("The SyncUser is already logged out and can not use the provided configuration to open a Realm."); } else { RealmLog.warn("Can not use the provided configuration to open a Realm, the SyncUser is no longer valid."); } } String rosServerUrl = syncConfig.getServerUrl().toString(); String rosUserIdentity = user.getIdentity(); String syncRealmAuthUrl = user.getAuthenticationUrl().toString(); String rosSerializedUser = user.toJson(); return new Object[]{rosUserIdentity, rosServerUrl, syncRealmAuthUrl, rosSerializedUser, syncConfig.syncClientValidateSsl(), syncConfig.getServerCertificateFilePath()}; } else { return new Object[6]; } }

Target:
public Object[] getUserAndServerUrl(RealmConfiguration config) { if (config instanceof SyncConfiguration) { SyncConfiguration syncConfig = (SyncConfiguration) config; SyncUser user = syncConfig.getUser(); if (!user.isValid()) { if (!SyncManager.getUserStore().isActive(user.getIdentity())) { throw new IllegalStateException("The SyncUser is already logged out and can not use the provided configuration to open a Realm."); } else { RealmLog.warn("The provided configuration uses an expired SyncUser token, this Realm instance will work offline."); } } String rosServerUrl = syncConfig.getServerUrl().toString(); String rosUserIdentity = user.getIdentity(); String syncRealmAuthUrl = user.getAuthenticationUrl().toString(); String rosSerializedUser = user.toJson(); return new Object[]{rosUserIdentity, rosServerUrl, syncRealmAuthUrl, rosSerializedUser, syncConfig.syncClientValidateSsl(), syncConfig.getServerCertificateFilePath()}; } else { return new Object[6]; } }
Source:
public static List<IdNamePair> getSortedListOfYearsThatBelongToSeveralGeoAreas( Map<Integer, Integer> countOfAreaCodesForYear) { return (List<IdNamePair>) (countOfAreaCodesForYear.entrySet().stream().filter(e -> e.getValue() > 1) .map(e -> new IdNamePair(String.valueOf(e.getKey()), null))).sorted().collect(Collectors.toList()); }

Target:
public static List<IdNamePair> getSortedListOfYearsThatBelongToSeveralGeoAreas( Map<Integer, Integer> countOfAreaCodesForYear) { return (List<IdNamePair>) (countOfAreaCodesForYear.entrySet().stream().filter(e -> e.getValue() > 1) .map(e -> e.getKey()).sorted().map(year -> new IdNamePair(String.valueOf(year), null))).collect(Collectors.toList()); }
Source:
public void play() { if (state != PlayerState.READY) { throw new IllegalStateException("Track processor is not ready yet."); } synchronized (skipProcessor) { System.out.println("notify skipper"); skipProcessor.notify(); } setState(PlayerState.PLAYING); }

Target:
public void play() { if (state != PlayerState.READY) { throw new IllegalStateException("Track processor is not ready yet."); } synchronized (skipProcessor) { skipProcessor.notify(); } setState(PlayerState.PLAYING); }
Source:
String heading(NamedResource resource, String kind) { if (resource instanceof DeployableResource) { DeployableResource deployable = (DeployableResource) resource; if (DeploymentUnitStatus.State.undeployed.toString().equals(deployable.getStatus())) { return String.format("Undeployed %s", kind); } return String.format("Deployed %s", kind); } return null; }

Target:
String heading(NamedResource resource, String kind) { return null; }
Source:
protected void registerSecureVault(SecureVault secureVault) { ConfigProviderDataHolder.getInstance().setOptSecureVault(Optional.ofNullable(secureVault)); }

Target:
protected void registerSecureVault(SecureVault secureVault) { ConfigProviderDataHolder.getInstance().setSecureVault(secureVault); }
Source:
public InputStream lookupFileStrict(URI uri, ClassLoader cl) throws FileNotFoundException { int startIndex = uri.toString().lastIndexOf(':'); String fileName = uri.toString().substring(startIndex + 1); InputStream in = cl.getResourceAsStream(fileName); if(in != null){ return in; } else { return null; } }

Target:
public InputStream lookupFileStrict(URI uri, ClassLoader cl) throws FileNotFoundException { int startIndex = uri.toString().lastIndexOf(':'); String fileName = uri.toString().substring(startIndex + 1); return cl.getResourceAsStream(fileName); }
Source:
public static ByteBuf copiedBuffer(CharSequence string, Charset charset) { ObjectUtil.checkNotNull(string, "string"); if (CharsetUtil.UTF_8.equals(charset)) { return copiedBufferUtf8(string, 0, string.length()); } if (CharsetUtil.US_ASCII.equals(charset)) { return copiedBufferAscii(string, 0, string.length()); } if (string instanceof CharBuffer) { return copiedBuffer((CharBuffer) string, charset); } return copiedBuffer(CharBuffer.wrap(string), charset); }

Target:
public static ByteBuf copiedBuffer(CharSequence string, Charset charset) { ObjectUtil.checkNotNull(string, "string"); if (CharsetUtil.UTF_8.equals(charset)) { return copiedBufferUtf8(string, 0, string.length()); } if (CharsetUtil.US_ASCII.equals(charset)) { return copiedBufferAscii(string); } if (string instanceof CharBuffer) { return copiedBuffer((CharBuffer) string, charset); } return copiedBuffer(CharBuffer.wrap(string), charset); }
Source:
FSMountPoint(String workspaceId, java.io.File ioRoot, EventService eventService, SearcherProvider searcherProvider) { this.workspaceId = workspaceId; this.ioRoot = ioRoot; this.eventService = eventService; this.searcherProvider = searcherProvider; root = new VirtualFileImpl(ioRoot, Path.ROOT, pathToId(Path.ROOT), this); pathLockFactory = new PathLockFactory(FILE_LOCK_MAX_THREADS); locksSerializer = new FileLockSerializer(); lockTokensCache = new Cache[CACHE_PARTITIONS_NUM]; metadataSerializer = new FileMetadataSerializer(); metadataCache = new Cache[CACHE_PARTITIONS_NUM]; for (int i = 0; i < CACHE_PARTITIONS_NUM; i++) { lockTokensCache[i] = new SynchronizedCache(new FileLockCache()); metadataCache[i] = new SynchronizedCache(new FileMetadataCache()); } userContext = VirtualFileSystemUserContext.newInstance(); List<AccessControlEntry> acl = new ArrayList<>(2); acl.add(newDto(AccessControlEntry.class) .withPrincipal(newDto(Principal.class) .withName("user") .withType(Principal.Type.GROUP)) .withPermissions(singletonList("all"))); acl.add(newDto(AccessControlEntry.class) .withPrincipal(newDto(Principal.class) .withName("temp_user") .withType(Principal.Type.GROUP)) .withPermissions(singletonList("all"))); DEFAULT_ACL.update(acl, true); }

Target:
FSMountPoint(String workspaceId, java.io.File ioRoot, EventService eventService, SearcherProvider searcherProvider) { this.workspaceId = workspaceId; this.ioRoot = ioRoot; this.eventService = eventService; this.searcherProvider = searcherProvider; root = new VirtualFileImpl(ioRoot, Path.ROOT, pathToId(Path.ROOT), this); pathLockFactory = new PathLockFactory(FILE_LOCK_MAX_THREADS); locksSerializer = new FileLockSerializer(); lockTokensCache = new Cache[CACHE_PARTITIONS_NUM]; metadataSerializer = new FileMetadataSerializer(); metadataCache = new Cache[CACHE_PARTITIONS_NUM]; for (int i = 0; i < CACHE_PARTITIONS_NUM; i++) { lockTokensCache[i] = new SynchronizedCache(new FileLockCache()); metadataCache[i] = new SynchronizedCache(new FileMetadataCache()); } userContext = VirtualFileSystemUserContext.newInstance(); List<AccessControlEntry> acl = new ArrayList<>(2); acl.add(newDto(AccessControlEntry.class) .withPrincipal(newDto(Principal.class) .withName("user") .withType(Principal.Type.GROUP)) .withPermissions(singletonList("all"))); acl.add(newDto(AccessControlEntry.class) .withPrincipal(newDto(Principal.class) .withName("temp_user") .withType(Principal.Type.GROUP)) .withPermissions(singletonList("all"))); defaultAcl.update(acl, true); }
Source:
public void noCrossClientPollution() throws IOException { int round = 200; int otherRound = 100; PaxosStateLog<PaxosValue> fileBasedLog = createFileSystemLog(CLIENT); fileBasedLog.writeRound(round, valueForRound(round)); PaxosLearner learner = paxosComponents.learner(CLIENT); Client otherClient = Client.of("other"); PaxosStateLog<PaxosValue> otherFileBasedLog = createFileSystemLog(otherClient); otherFileBasedLog.writeRound(otherRound, valueForRound(otherRound)); fileBasedLog.writeRound(round, valueForRound(round)); PaxosLearner otherLearner = paxosComponents.learner(otherClient); PaxosStorageParameters otherParameters = getParametersForClient(otherClient); PaxosStateLog<PaxosValue> otherSqliteLog = createSqliteLog(otherParameters); assertValueAbsent(round, otherSqliteLog); assertValuePresent(otherRound, otherSqliteLog); assertValueLearned(round, learner); assertValueNotLearned(otherRound, learner); assertValueNotLearned(round, otherLearner); assertValueLearned(otherRound, otherLearner); }

Target:
public void noCrossClientPollution() throws IOException { int round = 200; int otherRound = 100; PaxosStateLog<PaxosValue> fileBasedLog = createFileSystemLog(CLIENT); fileBasedLog.writeRound(round, valueForRound(round)); PaxosLearner learner = paxosComponents.learner(CLIENT); Client otherClient = Client.of("other"); PaxosStateLog<PaxosValue> otherFileBasedLog = createFileSystemLog(otherClient); otherFileBasedLog.writeRound(otherRound, valueForRound(otherRound)); PaxosLearner otherLearner = paxosComponents.learner(otherClient); PaxosStorageParameters otherParameters = paxosComponents.getLearnerParameters(otherClient); PaxosStateLog<PaxosValue> otherSqliteLog = createSqliteLog(otherParameters); assertValueAbsent(round, otherSqliteLog); assertValuePresent(otherRound, otherSqliteLog); assertValueLearned(round, learner); assertValueNotLearned(otherRound, learner); assertValueNotLearned(round, otherLearner); assertValueLearned(otherRound, otherLearner); }
Source:
private Pair<JobInfo.Status, String> orchestrateStart(final VmWorkStart work) throws Exception { final VMInstanceVO vm = _entityMgr.findById(VMInstanceVO.class, work.getVmId()); if (vm == null) { s_logger.info("Unable to find vm " + work.getVmId()); } assert vm != null; try{ orchestrateStart(vm.getUuid(), work.getParams(), work.getPlan(), _dpMgr.getDeploymentPlannerByName(work.getDeploymentPlanner())); } catch (CloudRuntimeException e){ s_logger.info("Caught CloudRuntimeException, returning job failed"); CloudRuntimeException ex = new CloudRuntimeException("Unable to start VM instance : " + e); return new Pair<JobInfo.Status, String>(JobInfo.Status.FAILED, JobSerializerHelper.toObjectSerializedString(ex)); } return new Pair<JobInfo.Status, String>(JobInfo.Status.SUCCEEDED, null); }

Target:
private Pair<JobInfo.Status, String> orchestrateStart(final VmWorkStart work) throws Exception { final VMInstanceVO vm = _entityMgr.findById(VMInstanceVO.class, work.getVmId()); if (vm == null) { s_logger.info("Unable to find vm " + work.getVmId()); } assert vm != null; try{ orchestrateStart(vm.getUuid(), work.getParams(), work.getPlan(), _dpMgr.getDeploymentPlannerByName(work.getDeploymentPlanner())); } catch (CloudRuntimeException e){ s_logger.info("Caught CloudRuntimeException, returning job failed " + e); CloudRuntimeException ex = new CloudRuntimeException("Unable to start VM instance"); return new Pair<JobInfo.Status, String>(JobInfo.Status.FAILED, JobSerializerHelper.toObjectSerializedString(ex)); } return new Pair<JobInfo.Status, String>(JobInfo.Status.SUCCEEDED, null); }
Source:
private void sendCommand(AirConditioner aircon, CommandEnum property, String value, String hostName) { int i = 1; boolean commandSent = false; while (i < 5 && !commandSent) { try { logger.debug("[" + i + "/5] Sending command: " + value + " to property:" + property + " with ip:" + aircon.getIpAddress()); Map<CommandEnum, String> status = aircon.sendCommand(property, value); if (status != null) { commandSent = true; logger.debug("Command[" + value + "] sent on try number " + i); updateAllItemsFromStatusMap(status, hostName); } } catch (Exception e) { logger.warn("Could not send value: '" + value + "' to property:'" + property + "', try " + i + "/5"); e.printStackTrace(); } finally { i++; } } }

Target:
private void sendCommand(AirConditioner aircon, CommandEnum property, String value, String hostName) { int i = 1; boolean commandSent = false; while (i < 5 && !commandSent) { try { logger.debug("[{}/5] Sending command: to property:{} with ip:{}", i, value, property, aircon.getIpAddress()); Map<CommandEnum, String> status = aircon.sendCommand(property, value); if (status != null) { commandSent = true; logger.debug("Command[{}] sent on try number {}", value, i); updateAllItemsFromStatusMap(status, hostName); } } catch (Exception e) { logger.warn("Could not send value: '{}' to property:'{}', try {}/5", value, property, i); e.printStackTrace(); } finally { i++; } } }
Source:
ThreadNameChangeHandler() { boolean isEnabled = System.getProperty("org.eclipse.jdt.internal.debug.core.model.ThreadNameChangeListener.disable") == null; if (isEnabled) { createRequest(); } }

Target:
ThreadNameChangeHandler() { boolean isEnabled = System.getProperty(DISABLE_THREAD_NAME_CHANGE_LISTENER) == null; if (isEnabled) { createRequest(); } }
Source:
public DelegatingResourceDescription getRepresentationDescription(Representation rep) { DelegatingResourceDescription description = new DelegatingResourceDescription(); description.addProperty("reaction", rep); description.addProperty("reactionNonCoded", rep); return description; }

Target:
public DelegatingResourceDescription getRepresentationDescription(Representation rep) { DelegatingResourceDescription description = new DelegatingResourceDescription(); if (rep instanceof DefaultRepresentation) { description.addProperty("reaction", Representation.REF); description.addProperty("reactionNonCoded"); } else if (rep instanceof FullRepresentation) { description.addProperty("reaction", Representation.DEFAULT); description.addProperty("reactionNonCoded"); } return description; }
Source:
public void setVmId(Guid value) { privateVmId = value; }

Target:
private void setVmId(Guid value) { privateVmId = value; }
Source:
default Set<MessageHandlerInterceptor<? super EventMessage<?>>> getHandlerInterceptors() { throw new UnsupportedOperationException("No implementation found to get the HandlerInterceptors"); }

Target:
default List<MessageHandlerInterceptor<? super EventMessage<?>>> getHandlerInterceptors() { throw new UnsupportedOperationException("No implementation found to get the HandlerInterceptors"); }