id int64 1 49k | buggy stringlengths 34 37.5k | fixed stringlengths 2 37k |
|---|---|---|
28,101 | private final TransactionTypeDao transactionTypeDao;
private final FullQueryTextDao fullQueryTextDao;
private final TraceAttributeNameDao traceAttributeNameDao;
RepoAdminImpl(DataSource dataSource, List<CappedDatabase> rollupCappedDatabases,
CappedDatabase traceCappedDatabase, ConfigRepository configRepository,
<BUG>Ag... | EnvironmentDao agentDao, GaugeValueDao gaugeValueDao, GaugeNameDao gaugeNameDao,
|
28,102 | this.fullQueryTextDao = fullQueryTextDao;
this.traceAttributeNameDao = traceAttributeNameDao;
}
@Override
public void deleteAllData() throws Exception {
<BUG>Environment environment = agentDao.readEnvironment("");
dataSource.deleteAll();</BUG>
agentDao.reinitAfterDeletingDatabase();
gaugeValueDao.reinitAfterDeletingDat... | Environment environment = agentDao.read("");
dataSource.deleteAll();
|
28,103 | public class SimpleRepoModule {
private static final long SNAPSHOT_REAPER_PERIOD_MINUTES = 5;
private final DataSource dataSource;
private final ImmutableList<CappedDatabase> rollupCappedDatabases;
private final CappedDatabase traceCappedDatabase;
<BUG>private final AgentDao agentDao;
private final TransactionTypeDao t... | private final EnvironmentDao environmentDao;
private final TransactionTypeDao transactionTypeDao;
|
28,104 | rollupCappedDatabases.add(new CappedDatabase(file, sizeKb, ticker));
}
this.rollupCappedDatabases = ImmutableList.copyOf(rollupCappedDatabases);
traceCappedDatabase = new CappedDatabase(new File(dataDir, "trace-detail.capped.db"),
storageConfig.traceCappedDatabaseSizeMb() * 1024, ticker);
<BUG>agentDao = new AgentDao(d... | environmentDao = new EnvironmentDao(dataSource);
|
28,105 | traceDao = new TraceDao(dataSource, traceCappedDatabase, transactionTypeDao,
fullQueryTextDao, traceAttributeNameDao);
GaugeNameDao gaugeNameDao = new GaugeNameDao(dataSource);
gaugeValueDao = new GaugeValueDao(dataSource, gaugeNameDao, clock);
repoAdmin = new RepoAdminImpl(dataSource, rollupCappedDatabases, traceCappe... | configRepository, environmentDao, gaugeValueDao, gaugeNameDao, transactionTypeDao,
|
28,106 | new TraceCappedDatabaseStats(traceCappedDatabase),
"org.glowroot:type=TraceCappedDatabase");
platformMBeanServerLifecycle.lazyRegisterMBean(new H2DatabaseStats(dataSource),
"org.glowroot:type=H2Database");
}
<BUG>public AgentDao getAgentDao() {
return agentDao;
</BUG>
}
public TransactionTypeRepository getTransactionTy... | public EnvironmentDao getEnvironmentDao() {
return environmentDao;
|
28,107 | package org.glowroot.agent.embedded.init;
import java.io.Closeable;
import java.io.File;
<BUG>import java.lang.instrument.Instrumentation;
import java.util.Map;</BUG>
import java.util.concurrent.CountDownLatch;
import java.util.concurrent.Executors;
import java.util.concurrent.ScheduledExecutorService;
| import java.util.List;
import java.util.Map;
|
28,108 | import java.util.concurrent.ScheduledExecutorService;
import javax.annotation.Nullable;
import com.google.common.base.MoreObjects;
import com.google.common.base.Stopwatch;
import com.google.common.base.Supplier;
<BUG>import com.google.common.base.Ticker;
import org.checkerframework.checker.nullness.qual.MonotonicNonNul... | import com.google.common.collect.ImmutableList;
import org.checkerframework.checker.nullness.qual.MonotonicNonNull;
|
28,109 | import org.glowroot.agent.init.EnvironmentCreator;
import org.glowroot.agent.init.GlowrootThinAgentInit;
import org.glowroot.agent.init.JRebelWorkaround;
import org.glowroot.agent.util.LazyPlatformMBeanServer;
import org.glowroot.common.live.LiveAggregateRepository.LiveAggregateRepositoryNop;
<BUG>import org.glowroot.c... | import org.glowroot.common.repo.AgentRepository;
import org.glowroot.common.repo.ImmutableAgentRollup;
import org.glowroot.common.util.Clock;
|
28,110 | SimpleRepoModule simpleRepoModule = new SimpleRepoModule(dataSource,
dataDir, clock, ticker, configRepository, backgroundExecutor);
simpleRepoModule.registerMBeans(new PlatformMBeanServerLifecycleImpl(
agentModule.getLazyPlatformMBeanServer()));
CollectorImpl collectorImpl = new CollectorImpl(
<BUG>simpleRepoModule.get... | simpleRepoModule.getEnvironmentDao(),
simpleRepoModule.getTraceDao(),
|
28,111 | .baseDir(baseDir)
.glowrootDir(glowrootDir)
.ticker(ticker)
.clock(clock)
.liveJvmService(agentModule.getLiveJvmService())
<BUG>.configRepository(simpleRepoModule.getConfigRepository())
.agentRepository(simpleRepoModule.getAgentDao())
</BUG>
.transactionTypeRepository(simpleRepoModule.getTransactionTypeRepository())
.t... | .agentRepository(new AgentRepositoryImpl())
.environmentRepository(simpleRepoModule.getEnvironmentDao())
|
28,112 | .baseDir(baseDir)
.glowrootDir(glowrootDir)
.ticker(ticker)
.clock(clock)
.liveJvmService(null)
<BUG>.configRepository(simpleRepoModule.getConfigRepository())
.agentRepository(simpleRepoModule.getAgentDao())
</BUG>
.transactionTypeRepository(simpleRepoModule.getTransactionTypeRepository())
.traceAttributeNameRepository... | .liveJvmService(agentModule.getLiveJvmService())
.agentRepository(new AgentRepositoryImpl())
.environmentRepository(simpleRepoModule.getEnvironmentDao())
|
28,113 | }
@Override
public void lazyRegisterMBean(Object object, String name) {
lazyPlatformMBeanServer.lazyRegisterMBean(object, name);
}
<BUG>}
}
</BUG>
| void initEmbeddedServer() throws Exception {
if (simpleRepoModule == null) {
return;
|
28,114 | List<GaugeConfig> configs = Lists.newArrayList(configService.getGaugeConfigs());
for (GaugeConfig loopConfig : configs) {
if (loopConfig.mbeanObjectName().equals(gaugeConfig.getMbeanObjectName())) {
throw new DuplicateMBeanObjectNameException();
}
<BUG>}
String version = Versions.getVersion(gaugeConfig);
for (GaugeConf... | [DELETED] |
28,115 | configService.updateGaugeConfigs(configs);
}
}
@Override
public void updateGaugeConfig(String agentId, AgentConfig.GaugeConfig gaugeConfig,
<BUG>String priorVersion) throws Exception {
synchronized (writeLock) {</BUG>
List<GaugeConfig> configs = Lists.newArrayList(configService.getGaugeConfigs());
boolean found = false... | GaugeConfig config = GaugeConfig.create(gaugeConfig);
synchronized (writeLock) {
|
28,116 | boolean found = false;
for (ListIterator<GaugeConfig> i = configs.listIterator(); i.hasNext();) {
GaugeConfig loopConfig = i.next();
String loopVersion = Versions.getVersion(loopConfig.toProto());
if (loopVersion.equals(priorVersion)) {
<BUG>i.set(GaugeConfig.create(gaugeConfig));
found = true;
break;</BUG>
} else if (... | i.set(config);
|
28,117 | boolean found = false;
for (ListIterator<PluginConfig> i = configs.listIterator(); i.hasNext();) {
PluginConfig loopPluginConfig = i.next();
if (pluginId.equals(loopPluginConfig.id())) {
String loopVersion = Versions.getVersion(loopPluginConfig.toProto());
<BUG>checkVersionsEqual(loopVersion, priorVersion);
PluginDescr... | for (ListIterator<GaugeConfig> i = configs.listIterator(); i.hasNext();) {
GaugeConfig loopConfig = i.next();
String loopVersion = Versions.getVersion(loopConfig.toProto());
if (loopVersion.equals(version)) {
i.remove();
|
28,118 | boolean found = false;
for (ListIterator<InstrumentationConfig> i = configs.listIterator(); i.hasNext();) {
InstrumentationConfig loopConfig = i.next();
String loopVersion = Versions.getVersion(loopConfig.toProto());
if (loopVersion.equals(priorVersion)) {
<BUG>i.set(InstrumentationConfig.create(instrumentationConfig))... | i.set(config);
} else if (loopConfig.equals(config)) {
throw new IllegalStateException("This exact instrumentation already exists");
|
28,119 | package org.glowroot.agent.embedded.init;
import java.io.File;
import java.util.List;
import org.glowroot.agent.collector.Collector;
<BUG>import org.glowroot.agent.embedded.repo.AgentDao;
import org.glowroot.agent.embedded.repo.AggregateDao;
import org.glowroot.agent.embedded.repo.GaugeValueDao;</BUG>
import org.glowro... | import org.glowroot.agent.embedded.repo.EnvironmentDao;
import org.glowroot.agent.embedded.repo.GaugeValueDao;
|
28,120 | </BUG>
private final AggregateDao aggregateDao;
private final TraceDao traceDao;
private final GaugeValueDao gaugeValueDao;
<BUG>CollectorImpl(AgentDao agentDao, AggregateDao aggregateRepository, TraceDao traceRepository,
GaugeValueDao gaugeValueRepository) {
this.agentDao = agentDao;</BUG>
this.aggregateDao = aggrega... | import org.glowroot.wire.api.model.CollectorServiceOuterClass.Environment;
import org.glowroot.wire.api.model.CollectorServiceOuterClass.GaugeValue;
import org.glowroot.wire.api.model.CollectorServiceOuterClass.LogEvent;
import org.glowroot.wire.api.model.TraceOuterClass.Trace;
class CollectorImpl implements Collector ... |
28,121 | import java.io.IOException;
import java.io.InputStream;
import java.io.OutputStream;
import java.security.DigestOutputStream;
import java.security.MessageDigest;
<BUG>import java.security.NoSuchAlgorithmException;
import java.util.ArrayList;
import java.util.Collections;
import java.util.List;</BUG>
public final class ... | import java.text.DateFormat;
import java.util.Date;
import java.util.List;
|
28,122 | package org.jboss.as.patching.runner;
<BUG>import org.jboss.as.boot.DirectoryStructure;
import org.jboss.as.patching.LocalPatchInfo;</BUG>
import org.jboss.as.patching.PatchInfo;
import org.jboss.as.patching.PatchLogger;
import org.jboss.as.patching.PatchMessages;
| import static org.jboss.as.patching.runner.PatchUtils.generateTimestamp;
import org.jboss.as.patching.CommonAttributes;
import org.jboss.as.patching.LocalPatchInfo;
|
28,123 | private static final String PATH_DELIMITER = "/";
public static final byte[] NO_CONTENT = PatchingTask.NO_CONTENT;
enum Element {
ADDED_BUNDLE("added-bundle"),
ADDED_MISC_CONTENT("added-misc-content"),
<BUG>ADDED_MODULE("added-module"),
BUNDLES("bundles"),</BUG>
CUMULATIVE("cumulative"),
DESCRIPTION("description"),
MIS... | APPLIES_TO_VERSION("applies-to-version"),
BUNDLES("bundles"),
|
28,124 | final int count = reader.getAttributeCount();
for (int i = 0; i < count; i++) {
final String value = reader.getAttributeValue(i);
final Attribute attribute = Attribute.forName(reader.getAttributeLocalName(i));
switch (attribute) {
<BUG>case APPLIES_TO_VERSION:
builder.addAppliesTo(value);
break;</BUG>
case RESULTING_VE... | [DELETED] |
28,125 | final StringBuilder path = new StringBuilder();
for(final String p : item.getPath()) {
path.append(p).append(PATH_DELIMITER);
}
path.append(item.getName());
<BUG>writer.writeAttribute(Attribute.PATH.name, path.toString());
if(type != ModificationType.REMOVE) {</BUG>
writer.writeAttribute(Attribute.HASH.name, bytesToHex... | if (item.isDirectory()) {
writer.writeAttribute(Attribute.DIRECTORY.name, "true");
if(type != ModificationType.REMOVE) {
|
28,126 | package org.jboss.as.patching;
import org.jboss.as.controller.OperationFailedException;
import org.jboss.as.patching.runner.PatchingException;
import org.jboss.logging.Messages;
import org.jboss.logging.annotations.Message;
<BUG>import org.jboss.logging.annotations.MessageBundle;
import java.io.IOException;</BUG>
impor... | import org.jboss.logging.annotations.Cause;
import java.io.IOException;
|
28,127 | import net.osmand.data.PointDescription;
import net.osmand.plus.IconsCache;
import net.osmand.plus.OsmAndFormatter;
import net.osmand.plus.OsmandApplication;
import net.osmand.plus.OsmandSettings;
<BUG>import net.osmand.plus.R;
import net.osmand.plus.activities.search.SearchActivity.SearchActivityChild;
import net.osma... | import net.osmand.plus.OsmAndLocationProvider.OsmAndCompassListener;
import net.osmand.plus.dashboard.DashLocationFragment;
import net.osmand.plus.dialogs.DirectionsDialogs;
|
28,128 | import android.widget.ImageButton;
import android.widget.ImageView;
import android.widget.ListView;
import android.widget.TextView;
import android.widget.TextView.BufferType;
<BUG>public class SearchHistoryFragment extends ListFragment implements SearchActivityChild {
</BUG>
private LatLon location;
private SearchHisto... | public class SearchHistoryFragment extends ListFragment implements SearchActivityChild, OsmAndCompassListener {
|
28,129 | private LatLon location;
private SearchHistoryHelper helper;
private Button clearButton;
public static final String SEARCH_LAT = SearchActivity.SEARCH_LAT;
public static final String SEARCH_LON = SearchActivity.SEARCH_LON;
<BUG>private HistoryAdapter historyAdapter;
@Override</BUG>
public View onCreateView(LayoutInflat... | private Float heading;
private boolean searchAroundLocation;
private boolean compassRegistered;
private int screenOrientation;
@Override
|
28,130 | if (row == null) {
LayoutInflater inflater = getActivity().getLayoutInflater();
row = inflater.inflate(R.layout.search_history_list_item, parent, false);
}
final HistoryEntry historyEntry = getItem(position);
<BUG>udpateHistoryItem(historyEntry, row, location, getActivity(), getMyApplication());
ImageButton options = (... | TextView distanceText = (TextView) row.findViewById(R.id.distance);
ImageView direction = (ImageView) row.findViewById(R.id.direction);
DashLocationFragment.updateLocationView(!searchAroundLocation, location, heading, direction, distanceText,
historyEntry.getLat(), historyEntry.getLon(), screenOrientation, getMyApplica... |
28,131 | package net.osmand.plus.activities;
import java.util.Comparator;
import java.util.List;
<BUG>import android.graphics.PorterDuff;
import android.graphics.drawable.Drawable;
import android.support.v4.app.ListFragment;
import android.support.v7.widget.PopupMenu;
import android.view.*;</BUG>
import net.osmand.data.Favourit... | [DELETED] |
28,132 | public static final String SELECT_FAVORITE_POINT_INTENT_KEY = "SELECT_FAVORITE_POINT_INTENT_KEY";
public static final int SELECT_FAVORITE_POINT_RESULT_OK = 1;
private FavouritesAdapter favouritesAdapter;
private boolean selectFavoriteMode;
private OsmandSettings settings;
<BUG>private LatLon location;
@Override</BUG>
p... | private boolean compassRegistered;
@Override
|
28,133 | if (position != 0) {
if (position == POSITION_CURRENT_LOCATION) {
net.osmand.Location loc = getLocationProvider().getLastKnownLocation();
if(loc != null && System.currentTimeMillis() - loc.getTime() < 10000) {
updateLocation(loc);
<BUG>} else {
startSearchCurrentLocation();
searchAroundCurrentLocation = true;</BUG>
}
}... | searchAroundCurrentLocation = true;
|
28,134 | SEARCH_INPUT_TYPE_ATTR_VALUE,
TEL_INPUT_TYPE_ATTR_VALUE,
COLOR_INPUT_TYPE_ATTR_VALUE
};
public SpringInputGeneralFieldTagProcessor(final String dialectPrefix) {
<BUG>super(dialectPrefix, INPUT_TAG_NAME, INPUT_TYPE_ATTR_NAME, ALL_TYPE_ATTR_VALUES, true);
}</BUG>
@Override
protected void doProcess(final ITemplateContext ... | super(dialectPrefix, INPUT_TAG_NAME, TYPE_ATTR_NAME, ALL_TYPE_ATTR_VALUES, true);
}
|
28,135 | final AttributeName attributeName, final String attributeValue,
final BindStatus bindStatus, final IElementTagStructureHandler structureHandler) {
String name = bindStatus.getExpression();
name = (name == null? "" : name);
final String id = computeId(context, tag, name, false);
<BUG>tag.getAttributes().setAttribute("id... | final IElementAttributes attributes = tag.getAttributes();
StandardProcessorUtils.setAttribute(attributes, this.idAttributeDefinition, ID_ATTR_NAME, id); // No need to escape: this comes from an existing 'id' or from a token
StandardProcessorUtils.setAttribute(attributes, this.nameAttributeDefinition, NAME_ATTR_NAME, n... |
28,136 | package org.thymeleaf.spring3.processor;
import org.springframework.util.StringUtils;
import org.springframework.web.servlet.support.BindStatus;
<BUG>import org.thymeleaf.context.ITemplateContext;
import org.thymeleaf.engine.AttributeName;
import org.thymeleaf.model.IProcessableElementTag;</BUG>
import org.thymeleaf.pr... | import org.thymeleaf.engine.AttributeDefinition;
import org.thymeleaf.engine.AttributeDefinitions;
import org.thymeleaf.engine.IAttributeDefinitionsAware;
import org.thymeleaf.model.IElementAttributes;
import org.thymeleaf.model.IProcessableElementTag;
|
28,137 | import org.thymeleaf.processor.element.AbstractAttributeTagProcessor;
import org.thymeleaf.processor.element.IElementTagStructureHandler;
import org.thymeleaf.spring3.naming.SpringContextVariableNames;
import org.thymeleaf.spring3.util.FieldUtils;
import org.thymeleaf.templatemode.TemplateMode;
<BUG>public abstract cla... | import org.thymeleaf.util.Validate;
public abstract class AbstractSpringFieldTagProcessor
extends AbstractAttributeTagProcessor
implements IAttributeDefinitionsAware {
private static final TemplateMode TEMPLATE_MODE = TemplateMode.HTML;
protected static final String INPUT_TAG_NAME = "input";
|
28,138 | package org.thymeleaf.spring3.processor;
import org.springframework.web.servlet.support.BindStatus;
import org.thymeleaf.context.ITemplateContext;
<BUG>import org.thymeleaf.engine.AttributeName;
import org.thymeleaf.model.IProcessableElementTag;
import org.thymeleaf.processor.element.IElementTagStructureHandler;
public... | import org.thymeleaf.model.IElementAttributes;
import org.thymeleaf.standard.util.StandardProcessorUtils;
public final class SpringInputFileFieldTagProcessor extends AbstractSpringFieldTagProcessor {
|
28,139 | import org.thymeleaf.model.IProcessableElementTag;
import org.thymeleaf.processor.element.IElementTagStructureHandler;
public final class SpringInputFileFieldTagProcessor extends AbstractSpringFieldTagProcessor {</BUG>
public static final String FILE_INPUT_TYPE_ATTR_VALUE = "file";
public SpringInputFileFieldTagProcess... | import org.thymeleaf.standard.util.StandardProcessorUtils;
public final class SpringInputFileFieldTagProcessor extends AbstractSpringFieldTagProcessor {
super(dialectPrefix, INPUT_TAG_NAME, TYPE_ATTR_NAME, new String[] { FILE_INPUT_TYPE_ATTR_VALUE }, true);
}
|
28,140 | import org.springframework.web.bind.WebDataBinder;
import org.springframework.web.servlet.support.BindStatus;
import org.springframework.web.servlet.tags.form.SelectedValueComparatorWrapper;
import org.thymeleaf.context.ITemplateContext;
import org.thymeleaf.engine.AttributeName;
<BUG>import org.thymeleaf.exceptions.Te... | import org.thymeleaf.model.IElementAttributes;
import org.thymeleaf.model.IModel;
|
28,141 | name = (name == null? "" : name);
final String id = computeId(context, tag, name, true);
String value = null;
boolean checked = false;
Object boundValue = bindStatus.getValue();
<BUG>final Class<?> valueType = bindStatus.getValueType();
if (Boolean.class.equals(valueType) || boolean.class.equals(valueType)) {</BUG>
if ... | final IElementAttributes attributes = tag.getAttributes();
if (Boolean.class.equals(valueType) || boolean.class.equals(valueType)) {
|
28,142 | }
final Boolean booleanValue = (boundValue != null ? (Boolean) boundValue : Boolean.FALSE);
value = "true";
checked = booleanValue.booleanValue();
} else {
<BUG>value = tag.getAttributes().getValue("value");
if (value == null) {</BUG>
throw new TemplateProcessingException(
"Attribute \"value\" is required in \"input(ch... | value = attributes.getValue(this.valueAttributeDefinition.getAttributeName());
if (value == null) {
|
28,143 | "Attribute \"value\" is required in \"input(checkbox)\" tags " +
"when binding to non-boolean values");
}
checked = SelectedValueComparatorWrapper.isSelected(bindStatus, HtmlEscape.unescapeHtml(value));
}
<BUG>tag.getAttributes().setAttribute("id", id); // No need to escape: this comes from an existing 'id' or from a t... | StandardProcessorUtils.setAttribute(attributes, this.idAttributeDefinition, ID_ATTR_NAME, id); // No need to escape: this comes from an existing 'id' or from a token
StandardProcessorUtils.setAttribute(attributes, this.nameAttributeDefinition, NAME_ATTR_NAME, name); // No need to escape: this is a java-valid token
Stan... |
28,144 | final IModel hiddenTagModel = modelFactory.createModel();
final String hiddenName = WebDataBinder.DEFAULT_FIELD_MARKER_PREFIX + name;
final String hiddenValue = "on";
final IStandaloneElementTag hiddenTag =
modelFactory.createStandaloneElementTag(INPUT_TAG_NAME, true);
<BUG>hiddenTag.getAttributes().setAttribute("type"... | final IElementAttributes hiddenTagAttributes = hiddenTag.getAttributes();
StandardProcessorUtils.setAttribute(hiddenTagAttributes, this.typeAttributeDefinition, TYPE_ATTR_NAME, "hidden");
StandardProcessorUtils.setAttribute(hiddenTagAttributes, this.nameAttributeDefinition, NAME_ATTR_NAME, hiddenName);
StandardProcesso... |
28,145 | package com.rackspace.papi.filter;
import javax.servlet.Filter;
<BUG>public class FilterContext {
private final ClassLoader filterClassLoader;</BUG>
private final Filter filter;
public FilterContext(Filter filter, ClassLoader filterClassLoader) {
this.filter = filter;
| import com.rackspace.papi.commons.util.Destroyable;
public class FilterContext implements Destroyable {
private final ClassLoader filterClassLoader;
|
28,146 | import com.rackspace.papi.commons.util.http.CommonHttpHeader;
import com.rackspace.papi.commons.util.http.HttpStatusCode;
import com.rackspace.papi.commons.util.servlet.filter.ApplicationContextAwareFilter;
import com.rackspace.papi.commons.util.servlet.http.HttpServletHelper;
import com.rackspace.papi.commons.util.ser... | import com.rackspace.papi.commons.util.thread.DestroyableThreadWrapper;
import com.rackspace.papi.filter.resource.PowerFilterChainReclaimer;
import com.rackspace.papi.filter.resource.PowerFilterChainGarbageCollector;
import com.rackspace.papi.model.PowerProxy;
|
28,147 | import javax.servlet.ServletResponse;
public class PowerFilter extends ApplicationContextAwareFilter {
private static final Logger LOG = LoggerFactory.getLogger(PowerFilter.class);
private final EventListener<ApplicationDeploymentEvent, String> applicationDeploymentListener;
private final UpdateListener<PowerProxy> sys... | private PowerFilterChainBuilder powerFilterChainBuilder;
private PowerFilterChainGarbageCollector filterChainGarbageCollector;
private DestroyableThreadWrapper filterChainGarbageCollectorThread;
private List<FilterContext> filterChain;
|
28,148 | applicationDeploymentListener = new EventListener<ApplicationDeploymentEvent, String>() {
@Override
public void onEvent(Event<ApplicationDeploymentEvent, String> e) {
LOG.info("Application collection has been modified. Application that changed: " + e.payload());
if (currentSystemModel != null) {
<BUG>final List<FilterC... | final List<FilterContext> newFilterChain = new FilterContextInitializer(filterConfig).buildFilterContexts(papiContext.classLoader(), currentSystemModel);
updateFilterChainBuilder(newFilterChain);
|
28,149 | final byte[] expectedBytes = new byte[16];
for (int i = 0; i < expectedBytes.length; i++) {
expectedBytes[i] = 1;
}
final UUID uuid = UUIDHelper.bytesToUUID(expectedBytes);
<BUG>System.out.println(uuid.toString());</BUG>
final byte[] actualBytes = UUIDHelper.stringToUUIDBytes(uuid.toString());
assertTrue(new ByteArrayC... | [DELETED] |
28,150 | new InetSocketAddress(InetAddress.getLocalHost(), 2103),
new InetSocketAddress(InetAddress.getLocalHost(), 2104)});
final String myKey = "mykey";
final int finishTotal = 9700,
sleep1 = 1000,
<BUG>sleep2 = 100000,
sleep3 = 200000,
sleep4 = 100250;
</BUG>
total = 0;
| sleep2 = 2000,
sleep3 = 1200,
sleep4 = 3000;
|
28,151 | import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import javax.servlet.FilterConfig;
import java.util.Collection;
public class FilterContextManagerImpl implements FilterContextManager {
<BUG>private static final Logger LOG = LoggerFactory.getLogger(PowerFilterChainBuilder.class);
</BUG>
private final FilterConfi... | private static final Logger LOG = LoggerFactory.getLogger(FilterContextInitializer.class);
|
28,152 | package com.easytoolsoft.easyreport.web.controller.common;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
@Controller
@RequestMapping(value = "/error")
<BUG>public class ErrorController extends AbstractController {
@RequestMapping(value = {"/404"})</BUG>... | public class ErrorController {
@RequestMapping(value = {"/404"})
|
28,153 | import org.elasticsearch.common.netty.bootstrap.ServerBootstrap;
import org.elasticsearch.common.netty.buffer.ChannelBuffer;
import org.elasticsearch.common.netty.buffer.ChannelBuffers;
import org.elasticsearch.common.netty.channel.*;
import org.elasticsearch.common.netty.channel.socket.nio.NioClientSocketChannelFactor... | import org.elasticsearch.common.netty.channel.socket.oio.OioClientSocketChannelFactory;
import org.elasticsearch.common.netty.channel.socket.oio.OioServerSocketChannelFactory;
import org.elasticsearch.common.netty.logging.InternalLogger;
|
28,154 | return super.newInstance(name.replace("org.elasticsearch.common.netty.", "netty.").replace("org.jboss.netty.", "netty."));
}
});
}
private final NetworkService networkService;
<BUG>final int workerCount;
final String port;</BUG>
final String bindHost;
final String publishHost;
final TimeValue connectTimeout;
| final boolean blockingServer;
final boolean blockingClient;
final String port;
|
28,155 | final int NUMBER_OF_CLIENTS = 1;
final int NUMBER_OF_ITERATIONS = 100000;
final byte[] payload = new byte[(int) payloadSize.bytes()];
final AtomicLong idGenerator = new AtomicLong();
Settings settings = ImmutableSettings.settingsBuilder()
<BUG>.put("network.server", false)
.build();</BUG>
final ThreadPool threadPool = ... | .put("network.tcp.blocking", false)
.build();
|
28,156 | package org.elasticsearch.memcached.netty;
import org.elasticsearch.ElasticSearchException;
import org.elasticsearch.common.component.AbstractLifecycleComponent;
<BUG>import org.elasticsearch.common.inject.Inject;
import org.elasticsearch.common.netty.bootstrap.ServerBootstrap;</BUG>
import org.elasticsearch.common.net... | import org.elasticsearch.common.netty.OpenChannelsHandler;
import org.elasticsearch.common.netty.bootstrap.ServerBootstrap;
|
28,157 | import static org.elasticsearch.common.network.NetworkService.TcpSettings.*;
import static org.elasticsearch.common.util.concurrent.Executors.*;
public class NettyMemcachedServerTransport extends AbstractLifecycleComponent<MemcachedServerTransport> implements MemcachedServerTransport {
private final RestController rest... | private final boolean blockingServer;
private final String port;
|
28,158 | private volatile OpenChannelsHandler serverOpenChannels;
@Inject public NettyMemcachedServerTransport(Settings settings, RestController restController, NetworkService networkService) {
super(settings);
this.restController = restController;
this.networkService = networkService;
<BUG>this.workerCount = componentSettings.... | this.blockingServer = componentSettings.getAsBoolean("memcached.blocking_server", componentSettings.getAsBoolean(TCP_BLOCKING_SERVER, componentSettings.getAsBoolean(TCP_BLOCKING, false)));
this.port = componentSettings.get("port", settings.get("memcached.port", "11211-11311"));
|
28,159 | public static final class TcpSettings {
public static final String TCP_NO_DELAY = "network.tcp.no_delay";
public static final String TCP_KEEP_ALIVE = "network.tcp.keep_alive";
public static final String TCP_REUSE_ADDRESS = "network.tcp.reuse_address";
public static final String TCP_SEND_BUFFER_SIZE = "network.tcp.send_... | public static final String TCP_BLOCKING = "network.tcp.blocking";
public static final String TCP_BLOCKING_SERVER = "network.tcp.blocking_server";
public static final String TCP_BLOCKING_CLIENT = "network.tcp.blocking_client";
|
28,160 | final int NUMBER_OF_ITERATIONS = 100000;
final byte[] payload = new byte[(int) payloadSize.bytes()];
final AtomicLong idGenerator = new AtomicLong();
final BenchmarkTransportResponseHandler responseHandler = new BenchmarkTransportResponseHandler();
Settings settings = ImmutableSettings.settingsBuilder()
<BUG>.put("netw... | .put("network.tcp.blocking", false)
.build();
|
28,161 | import org.elasticsearch.common.component.AbstractLifecycleComponent;
import org.elasticsearch.common.inject.Inject;
import org.elasticsearch.common.netty.OpenChannelsHandler;
import org.elasticsearch.common.netty.bootstrap.ServerBootstrap;
import org.elasticsearch.common.netty.channel.*;
<BUG>import org.elasticsearch.... | import org.elasticsearch.common.netty.channel.socket.oio.OioServerSocketChannelFactory;
import org.elasticsearch.common.netty.handler.codec.http.HttpChunkAggregator;
|
28,162 | }
});
}
private final NetworkService networkService;
private final ByteSizeValue maxContentLength;
<BUG>private final int workerCount;
private final String port;</BUG>
private final String bindHost;
private final String publishHost;
private final Boolean tcpNoDelay;
| private final boolean blockingServer;
private final String port;
|
28,163 | private volatile HttpServerAdapter httpServerAdapter;
@Inject public NettyHttpServerTransport(Settings settings, NetworkService networkService) {
super(settings);
this.networkService = networkService;
ByteSizeValue maxContentLength = componentSettings.getAsBytesSize("max_content_length", settings.getAsBytesSize("http.m... | this.blockingServer = componentSettings.getAsBoolean("http.blocking_server", componentSettings.getAsBoolean(TCP_BLOCKING_SERVER, componentSettings.getAsBoolean(TCP_BLOCKING, false)));
this.port = componentSettings.get("port", settings.get("http.port", "9200-9300"));
|
28,164 | import org.elasticsearch.transport.netty.NettyTransport;
public class BenchmarkNettyServer {
public static void main(String[] args) {
final boolean spawn = true;
Settings settings = ImmutableSettings.settingsBuilder()
<BUG>.put("transport.netty.port", 9999)
.build();</BUG>
final ThreadPool threadPool = new CachedThread... | .put("network.tcp.blocking", false)
.build();
|
28,165 | long[] targetDims = new long[] { target.dimension( 0 ), target.dimension( 1 ) };
final T extendedVal = target.firstElement().createVariable();
extendedVal.set( false );
final ImgFactory< T > factory;
if ( extendedVal instanceof NativeType )
<BUG>factory = Util.getArrayOrCellImgFactory( target, ( NativeType ) extendedVa... | factory = ( ImgFactory< T > ) Util.getArrayOrCellImgFactory( target, ( NativeType ) extendedVal );
|
28,166 | long[] targetDims = new long[] { target.dimension( 0 ), target.dimension( 1 ) };
final T extendedVal = target.firstElement().createVariable();
extendedVal.set( false );
final ImgFactory< T > factory;
if ( extendedVal instanceof NativeType )
<BUG>factory = Util.getArrayOrCellImgFactory( target, ( NativeType ) extendedVa... | factory = ( ImgFactory< T > ) Util.getArrayOrCellImgFactory( target, ( NativeType ) extendedVal );
|
28,167 | private VideoComponent videoComponent;
private PlayBin2 playbin2;
private File currentFile;
private long durationMillis = 0;
private boolean autoTracking = false; // true if the slider is moving automatically
<BUG>private final Object lock = new Object(); // lock for synchronization
</BUG>
public DataContentViewerMedia... | private final Object playbinLock = new Object(); // lock for synchronization
|
28,168 | private void initComponents() {
pauseButton = new javax.swing.JButton();
videoPanel = new javax.swing.JPanel();
progressSlider = new javax.swing.JSlider();
progressLabel = new javax.swing.JLabel();
<BUG>pauseButton.setText(org.openide.util.NbBundle.getMessage(DataContentViewerMedia.class, "DataContentViewerMedia.pauseB... | pauseButton.setMaximumSize(new java.awt.Dimension(45, 23));
pauseButton.setMinimumSize(new java.awt.Dimension(45, 23));
pauseButton.setPreferredSize(new java.awt.Dimension(45, 23));
pauseButton.addActionListener(new java.awt.event.ActionListener() {
|
28,169 | this.setLayout(layout);
layout.setHorizontalGroup(
layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addComponent(videoPanel, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
.addGroup(layout.createSequentialGroup()
<BUG>.addComponent(pauseButton)
.addPre... | .addComponent(pauseButton, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
.addComponent(progressSlider, javax.swing.GroupLayout.DEFAULT_SIZE, 158, Short.MAX_VALUE)
|
28,170 | .addComponent(pauseButton, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
.addComponent(progressSlider, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
.addComponent(progressLabel, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swin... | synchronized(playbinLock) {
if(playbin2.getState().equals(State.PLAYING)){
|
28,171 | pauseButton.setText("||");
playbin2.setState(State.PLAYING);
} else if(playbin2.getState().equals(State.READY)) {
ExtractMedia em = new ExtractMedia(currentFile, getJFile(currentFile));
em.execute();
<BUG>}
}//GEN-LAST:event_pauseButtonActionPerformed</BUG>
private javax.swing.JButton pauseButton;
private javax.swing.J... | }//GEN-LAST:event_pauseButtonActionPerformed
|
28,172 | try {
ContentUtils.writeToFile(file, ioFile);
} catch (IOException ex) {
logger.log(Level.WARNING, "Error buffering file", ex);
}
<BUG>}
playbin2 = new PlayBin2("ImageViewer");
videoComponent = new VideoComponent();
playbin2.setVideoSink(videoComponent.getElement());
videoPanel.removeAll();</BUG>
videoPanel.setLayout(n... | synchronized(playbinLock) {
videoPanel.removeAll();
|
28,173 | playbin2.setVideoSink(videoComponent.getElement());
videoPanel.removeAll();</BUG>
videoPanel.setLayout(new BoxLayout(videoPanel, BoxLayout.Y_AXIS));
videoPanel.add(videoComponent);
videoPanel.revalidate();
<BUG>videoPanel.repaint();
playbin2.setInputFile(ioFile);
videoPanel.setVisible(true);
playbin2.play();</BUG>
}
| videoPanel.removeAll();
synchronized(playbinLock) {
playbin2.play();
|
28,174 | finalDuration = duration.substring(3);
progressLabel.setText("00:00/" + duration);
} else {
finalDuration = duration;
progressLabel.setText("00:00:00/" + duration);
<BUG>}
playbin2.play();
pauseButton.setText("||");</BUG>
new Thread(new Runnable() {
@Override
| synchronized(playbinLock) {
pauseButton.setText("||");
|
28,175 | @Override
public void run() {
long positionMillis = 0;
while (positionMillis < durationMillis
&& playbin2 != null
<BUG>&& !playbin2.getState().equals(State.NULL)) {
String position = playbin2.queryPosition().toString();
positionMillis = playbin2.queryPosition().toMillis();
if (position.length() == 8) {</BUG>
position =... | synchronized(playbinLock) {
|
28,176 | import freenet.support.HTMLNode;
import freenet.support.LogThresholdCallback;
import freenet.support.Logger;
import freenet.support.SizeUtil;
import freenet.support.TimeUtil;
<BUG>import freenet.support.Logger.LogLevel;
import freenet.support.io.FileBucket;</BUG>
import freenet.support.io.RandomAccessFileWrapper;
publi... | import freenet.support.api.Bucket;
import freenet.support.io.FileBucket;
|
28,177 | Logger.error(this, "Cancelled fetch from store/blob of revocation certificate from " + source);
System.err.println("Cancelled fetch from store/blob of revocation certificate from " + source + " to " + temp + " - please report to developers");
} else if(e.isFatal()) {
System.err.println("Got revocation certificate from ... | temp.free();
|
28,178 | public void onMajorProgress(ObjectContainer container) {
}
public void onSuccess(FetchResult result, ClientGetter state, ObjectContainer container) {
System.err.println("Got revocation certificate from " + source);
updateManager.revocationChecker.onSuccess(result, state, cleanedBlob);
<BUG>temp.delete();
</BUG>
insertB... | temp.free();
|
28,179 | package org.jetbrains.plugins.groovy.lang.parser.parsing.statements.typeDefinitions.typeDef;
<BUG>import com.intellij.lang.PsiBuilder;
import org.jetbrains.plugins.groovy.lang.lexer.GroovyElementType;</BUG>
import org.jetbrains.plugins.groovy.lang.parser.GroovyElementTypes;
import org.jetbrains.plugins.groovy.lang.pars... | import com.intellij.openapi.graph.builder.GraphBundle;
import org.jetbrains.plugins.groovy.lang.lexer.GroovyElementType;
|
28,180 | GroovyElementType IMPLEMENTS_CLAUSE = new GroovyElementType("implements clause");
GroovyElementType INTERFACE_EXTENDS_CLAUSE = new GroovyElementType("interface extends clause");
GroovyElementType EXTENDS_CLAUSE = new GroovyElementType("super class clause");
GroovyElementType TYPE_ARGUMENTS = new GroovyElementType("type... | GroovyElementType DEFAULT_ANNOTATION_MEMBER = new GroovyElementType("default annotation member");
GroovyElementType DEFAULT_ANNOTATION_VALUE = new GroovyElementType("default annotation value");
GroovyElementType METHOD_DEFINITION = new GroovyElementType("method definition");
|
28,181 | package org.jetbrains.plugins.groovy.lang.parser.parsing.statements.declaration;
import com.intellij.lang.PsiBuilder;
import org.jetbrains.plugins.groovy.GroovyBundle;
<BUG>import org.jetbrains.plugins.groovy.lang.lexer.GroovyElementType;
import org.jetbrains.plugins.groovy.lang.parser.GroovyElementTypes;
import org.je... | import org.jetbrains.plugins.groovy.lang.lexer.GroovyTokenTypes;
import org.jetbrains.plugins.groovy.lang.parser.parsing.auxiliary.annotations.AnnotationArguments;
import org.jetbrains.plugins.groovy.lang.parser.parsing.auxiliary.parameters.ParameterDeclarationList;
|
28,182 | if (ParserUtils.getToken(builder, mLPAREN)) {
GroovyElementType paramDeclList = ParameterDeclarationList.parse(builder, mRPAREN);
if (isEnumConstantMember && !isStringName) {
builder.error(GroovyBundle.message("string.name.unexpected"));
}
<BUG>if (isAnnotationMember && !NONE.equals(paramDeclList)) {
builder.error(Groo... | [DELETED] |
28,183 | return varDecl;
}
} else { //type was recognezed
GroovyElementType varDeclarationTop = VariableDefinitions.parse(builder, isInClass);
if (WRONGWAY.equals(varDeclarationTop)) {
<BUG>checkMarker.rollbackTo();
GroovyElementType varDecl = VariableDefinitions.parse(builder, isInClass);</BUG>
if (WRONGWAY.equals(varDecl)) {... | if (isInAnnotation) {
builder.error(GroovyBundle.message("type.expected"));
GroovyElementType varDecl = VariableDefinitions.parse(builder, isInClass);
|
28,184 | package org.jetbrains.plugins.groovy.lang.completion;
import com.intellij.codeInsight.completion.*;
<BUG>import com.intellij.codeInsight.completion.simple.SimpleLookupItem;
import com.intellij.codeInsight.completion.simple.SimpleInsertHandlerFactory;</BUG>
import com.intellij.codeInsight.lookup.LookupItem;
import com.i... | [DELETED] |
28,185 | import org.jetbrains.plugins.groovy.lang.psi.impl.statements.typedef.bodies.enumConstantBody.GrEnumConstantBodyImpl;
import org.jetbrains.plugins.groovy.lang.psi.impl.statements.typedef.bodies.GrTypeDefinitionBodyImpl;
import org.jetbrains.plugins.groovy.lang.psi.impl.statements.typedef.enumConstant.GrEnumConstantImpl;... | import org.jetbrains.plugins.groovy.lang.psi.impl.statements.typedef.members.GrDefaultAnnotationMemberImpl;
import org.jetbrains.plugins.groovy.lang.psi.impl.statements.typedef.members.enumConstantMember.GrEnumConstantMemberImpl;
|
28,186 | if (elem.equals(LIST_OR_MAP)) return new GrListOrMapImpl(node);
if (elem.equals(MODIFIERS)) return new GrModifierListImpl(node);
if (elem.equals(ANNOTATION)) return new GrAnnotationImpl(node);
if (elem.equals(ANNOTATION_ARGUMENTS)) return new GrAnnotationArgumentsImpl(node);
if (elem.equals(ANNOTATION_MEMBER_VALUE_PAIR... | if (elem.equals(DEFAULT_ANNOTATION_VALUE)) return new GrDefaultAnnotationValueImpl(node);
if (elem.equals(THROW_CLAUSE)) return new GrThrowClauseImpl(node);
|
28,187 | if (elem.equals(CLASS_DEFINITION) || elem.equals(CLASS_DEFINITION_ERROR)) return new GrClassDefinitionImpl(node);
if (elem.equals(INTERFACE_DEFINITION) || elem.equals(INTERFACE_DEFINITION_ERROR))
return new GrInterfaceDefinitionImpl(node);
if (elem.equals(ENUM_DEFINITION) || elem.equals(ENUM_DEFINITION_ERROR)) return n... | if (elem.equals(DEFAULT_ANNOTATION_MEMBER)) return new GrDefaultAnnotationMemberImpl(node);
if (elem.equals(REFERENCE_ELEMENT)) return new GrTypeOrPackageReferenceElementImpl(node);
|
28,188 | AnnotationMember.parse(builder);
IElementType sep = Separators.parse(builder);
while (!WRONGWAY.equals(sep)) {
AnnotationMember.parse(builder);
sep = Separators.parse(builder);
<BUG>}
ParserUtils.waitNextRCurly(builder);
if (!ParserUtils.getToken(builder, mRCURLY)) {
builder.error(GroovyBundle.message("rcurly.expected"... | if (builder.getTokenType() != mRCURLY) {
while (!builder.eof() && !ParserUtils.getToken(builder, mRCURLY)) {
AnnotationMember.parse(builder/*, className*/);
builder.advanceLexer();
|
28,189 | public void dispose() {
super.dispose();
if (coolItemToolBarMgr == null) {
return;
}
<BUG>IContributionItem[] items = coolItemToolBarMgr.getItems();
for (int i = 0; i < items.length; i++) {
IContributionItem item = items[i];</BUG>
if (item instanceof PluginActionCoolBarContributionItem) {
| for (IContributionItem item : coolItemToolBarMgr.getItems()) {
|
28,190 | if (this.enabledAllowed == enabledAllowed) {
return;
}
this.enabledAllowed = enabledAllowed;
if (coolItemToolBarMgr != null) {
<BUG>IContributionItem[] items = coolItemToolBarMgr.getItems();
for (int i = 0; i < items.length; i++) {
IContributionItem item = items[i];</BUG>
if (item != null) {
| for (IContributionItem item : coolItemToolBarMgr.getItems()) {
|
28,191 | setEnabledAllowed(false);
}
}
ICoolBarManager coolBarManager = getCastedParent().getCoolBarManager();
if ((coolItemToolBarMgr != null) && (coolBarManager != null)) {
<BUG>IContributionItem[] items = coolItemToolBarMgr.getItems();
for (int i = 0; i < items.length; i++) {
IContributionItem item = items[i];</BUG>
item.se... | for (IContributionItem item : coolItemToolBarMgr.getItems()) {
|
28,192 | public class EditorMenuManager extends SubMenuManager {
private ArrayList wrappers;
private boolean enabledAllowed = true;
private class Overrides implements IContributionManagerOverrides {
public void updateEnabledAllowed() {
<BUG>IContributionItem[] items = EditorMenuManager.super.getItems();
for (int i = 0; i < ite... | for (IContributionItem item : EditorMenuManager.super.getItems()) {
|
28,193 | HashSet set = new HashSet();
getAllContributedActions(set);
return (IAction[]) set.toArray(new IAction[set.size()]);
}
protected void getAllContributedActions(HashSet set) {
<BUG>IContributionItem[] items = super.getItems();
for (int i = 0; i < items.length; i++) {
getAllContributedActions(set, items[i]);
}</BUG>
if (... | for (IContributionItem item : super.getItems()) {
getAllContributedActions(set, item);
|
28,194 | element.getAllContributedActions(set);
}
}
protected void getAllContributedActions(HashSet set, IContributionItem item) {
if (item instanceof MenuManager) {
<BUG>IContributionItem subItems[] = ((MenuManager) item).getItems();
for (int j = 0; j < subItems.length; j++) {
getAllContributedActions(set, subItems[j]);
}</BU... | for (IContributionItem subItem : ((MenuManager) item).getItems()) {
getAllContributedActions(set, subItem);
|
28,195 | } else {
memento.putString(IWorkbenchConstants.TAG_NAME, getName());
memento.putString(IWorkbenchConstants.TAG_LABEL, getLabel());
memento.putString(IWorkbenchConstants.TAG_ID, getUniqueId());
memento.putString(AbstractWorkingSet.TAG_AGGREGATE, Boolean.TRUE
<BUG>.toString());
IWorkingSet[] localComponents = getComponen... | for (IWorkingSet workingSet : getComponentsInternal()) {
memento.createChild(IWorkbenchConstants.TAG_WORKING_SET, workingSet.getName());
|
28,196 | if (manager == null) {
throw new IllegalStateException();
}
IMemento[] workingSetReferences = workingSetMemento
.getChildren(IWorkbenchConstants.TAG_WORKING_SET);
<BUG>ArrayList list = new ArrayList(workingSetReferences.length);
for (int i = 0; i < workingSetReferences.length; i++) {
IMemento setReference = workingSetR... | for (IMemento memento : workingSetReferences) {
String setId = memento.getID();
|
28,197 | if (children.length == 0) {
throw new IllegalStateException(
"Composite expression cannot be empty"); //$NON-NLS-1$
}
list = new ArrayList(children.length);
<BUG>for (int i = 0; i < children.length; i++) {
String tag = children[i].getName();
AbstractExpression expr = createExpression(children[i]);
</BUG>
if (EXP_TYPE_... | for (IConfigurationElement configElement : children) {
String tag = configElement.getName();
AbstractExpression expr = createExpression(configElement);
|
28,198 | String[] objectClasses = next.extractObjectClasses();
if (objectClasses != null) {
if (classNames == null) {
classNames = new ArrayList();
}
<BUG>for (int i = 0; i < objectClasses.length; i++) {
classNames.add(objectClasses[i]);
}</BUG>
}
}
| for (String objectClass : objectClasses) {
classNames.add(objectClass);
|
28,199 | private boolean checkInterfaceHierarchy(Class interfaceToCheck) {
if (interfaceToCheck.getName().equals(className)) {
return true;
}
Class[] superInterfaces = interfaceToCheck.getInterfaces();
<BUG>for (int i = 0; i < superInterfaces.length; i++) {
if (checkInterfaceHierarchy(superInterfaces[i])) {
return true;</BUG>
}... | for (Class superInterface : superInterfaces) {
if (checkInterfaceHierarchy(superInterface)) {
|
28,200 | while (clazz != null) {
if (clazz.getName().equals(className)) {
return true;
}
Class[] interfaces = clazz.getInterfaces();
<BUG>for (int i = 0; i < interfaces.length; i++) {
if (checkInterfaceHierarchy(interfaces[i])) {
</BUG>
return true;
}
| [DELETED] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.