id int64 1 49k | buggy stringlengths 34 37.5k | fixed stringlengths 2 37k |
|---|---|---|
27,401 | m_service = null;
if (m_logServiceRef == null) {
m_context.ungetService(m_logServiceRef);
m_logServiceRef = null;
}
<BUG>synchronized (m_loggers) {
Collection values = m_loggers.values();
Iterator iterator = values.iterator();
while (iterator.hasNext())
{
TrackingLogger logger = (TrackingLogger) iterator.next();</BUG>
... | [DELETED] |
27,402 | fqcn = PaxLogger.class.getName();
}
Bundle bundle = BundleHelper.getCallerBundle(m_context.getBundle());
String key = fqcn + "#" + category + "#" + (bundle != null ? Long.toString(bundle.getBundleId()) : "0");
synchronized (m_loggers) {
<BUG>TrackingLogger logger = (TrackingLogger) m_loggers.get(key);
if (logger == nul... | TrackingLogger logger = m_loggers.get(key);
if (logger == null)
|
27,403 | <BUG>package org.apache.juli.logging;
import java.util.Properties;
import java.util.Set;
import java.util.Iterator;
import java.util.Map;</BUG>
import java.util.WeakHashMap;
| import java.util.Collections;
import java.util.Map;
|
27,404 | <BUG>import java.util.Collections;
import org.osgi.framework.BundleContext;
import org.ops4j.pax.logging.OSGIPaxLoggingManager;
import org.ops4j.pax.logging.PaxLoggingManager;
import org.ops4j.pax.logging.PaxLogger;
import org.ops4j.pax.logging.internal.DefaultServiceLog;
import org.ops4j.pax.logging.internal.FallbackL... | package org.apache.juli.logging;
import java.util.Map;
import java.util.Properties;
import java.util.WeakHashMap;
import org.apache.juli.logging.internal.JuliLogger;
|
27,405 | else
{
logger = m_paxLogging.getLogger( name, JuliLogger.JULI_FQCN );
}
JuliLogger juliLogger = new JuliLogger( logger );
<BUG>m_loggers.put( juliLogger, name );
</BUG>
return juliLogger;
}
public void release() {
| m_loggers.put( name, juliLogger );
|
27,406 | Assert.assertEquals(msg, result2);
}
@Test
public void testAsciiConverter() {
HttpResponse response = createOkResponse();
<BUG>byte[] payload = parser.marshalToBytes(response);
</BUG>
ConvertAscii converter = new ConvertAscii();
String readableForm = converter.convertToReadableForm(payload);
Assert.assertEquals(
| byte[] payload = unwrap(parser.marshalToByteBuffer(response));
|
27,407 | Assert.assertEquals(response, httpMessage);
}
@Test
public void test2AndHalfHttpMessages() {
HttpResponse response = createOkResponse();
<BUG>byte[] payload = parser.marshalToBytes(response);
</BUG>
byte[] first = new byte[2*payload.length + 20];
byte[] second = new byte[payload.length - 20];
System.arraycopy(payload,... | byte[] payload = unwrap(parser.marshalToByteBuffer(response));
|
27,408 | DataWrapper payload1 = dataGen.wrapByteArray("0123456789".getBytes());
HttpChunk chunk = new HttpChunk();
chunk.addExtension(new HttpChunkExtension("asdf", "value"));
chunk.addExtension(new HttpChunkExtension("something"));
chunk.setBody(payload1);
<BUG>byte[] payload = parser.marshalToBytes(chunk);
</BUG>
String str =... | byte[] payload = unwrap(parser.marshalToByteBuffer(chunk));
|
27,409 | HttpLastChunk lastChunk = new HttpLastChunk();
lastChunk.addExtension(new HttpChunkExtension("this", "that"));
lastChunk.addHeader(new Header("customer", "value"));
String lastPayload = parser.marshalToString(lastChunk);
Assert.assertEquals("0;this=that\r\ncustomer: value\r\n\r\n", lastPayload);
<BUG>byte[] lastBytes =... | byte[] lastBytes = unwrap(parser.marshalToByteBuffer(lastChunk));
|
27,410 | import java.util.HashMap;
import java.util.LinkedList;
import java.util.List;
import java.util.Map;
import java.util.Optional;
<BUG>import org.slf4j.Logger;
import org.slf4j.LoggerFactory;</BUG>
import org.webpieces.data.api.BufferPool;
import org.webpieces.data.api.DataWrapper;
import org.webpieces.data.api.DataWrappe... | [DELETED] |
27,411 | import java.nio.ByteBuffer;
import org.webpieces.data.api.DataWrapper;
import org.webpieces.httpparser.api.dto.HttpPayload;
public interface HttpParser {
ByteBuffer marshalToByteBuffer(HttpPayload request);
<BUG>byte[] marshalToBytes(HttpPayload request);</BUG>
String marshalToString(HttpPayload request);
Memento prepa... | [DELETED] |
27,412 | HttpRequestLine requestLine = new HttpRequestLine();
requestLine.setMethod(KnownHttpMethod.GET);
requestLine.setUri(new HttpUri("http://www.deano.com"));
HttpRequest req = new HttpRequest();
req.setRequestLine(requestLine);
<BUG>byte[] array = parser.marshalToBytes(req);
</BUG>
ByteBuffer buffer = ByteBuffer.wrap(array... | byte[] array = unwrap(parser.marshalToByteBuffer(req));
|
27,413 | Assert.assertEquals(msg, result2);
}
@Test
public void testAsciiConverter() {
HttpRequest request = createPostRequest();
<BUG>byte[] payload = parser.marshalToBytes(request);
</BUG>
ConvertAscii converter = new ConvertAscii();
String readableForm = converter.convertToReadableForm(payload);
String expected = "POST\\s ht... | byte[] payload = unwrap(parser.marshalToByteBuffer(request));
|
27,414 | Assert.assertEquals(request, httpMessage);
}
@Test
public void test2AndHalfHttpMessages() {
HttpRequest request = createPostRequest();
<BUG>byte[] payload = parser.marshalToBytes(request);
</BUG>
byte[] first = new byte[2*payload.length + 20];
byte[] second = new byte[payload.length - 20];
System.arraycopy(payload, 0,... | byte[] payload = unwrap(parser.marshalToByteBuffer(request));
|
27,415 | package org.xerial.snappy;
import java.io.IOException;
public class BitShuffleNative
{
<BUG>public native boolean supportBitSuffle();</BUG>
public native int bitShuffle(Object input, int inputOffset, int typeSize, int byteLength, Object output, int outputOffset)
throws IOException;
public native int bitUnShuffle(Object... | [DELETED] |
27,416 | import java.util.Locale;
import java.util.Map;
import java.util.TreeMap;
public class DependencyConvergenceReport
extends AbstractProjectInfoReport
<BUG>{
private List reactorProjects;
private static final int PERCENTAGE = 100;</BUG>
public String getOutputName()
{
| private static final int PERCENTAGE = 100;
private static final List SUPPORTED_FONT_FAMILY_NAMES = Arrays.asList( GraphicsEnvironment
.getLocalGraphicsEnvironment().getAvailableFontFamilyNames() );
|
27,417 | sink.section1();
sink.sectionTitle1();
sink.text( getI18nString( locale, "title" ) );
sink.sectionTitle1_();
Map dependencyMap = getDependencyMap();
<BUG>generateLegend( locale, sink );
generateStats( locale, sink, dependencyMap );
generateConvergence( locale, sink, dependencyMap );
sink.section1_();</BUG>
sink.body_()... | sink.lineBreak();
sink.section1_();
|
27,418 | Iterator it = artifactMap.keySet().iterator();
while ( it.hasNext() )
{
String version = (String) it.next();
sink.tableRow();
<BUG>sink.tableCell();
sink.text( version );</BUG>
sink.tableCell_();
sink.tableCell();
generateVersionDetails( sink, artifactMap, version );
| sink.tableCell( String.valueOf( cellWidth ) + "px" );
sink.text( version );
|
27,419 | sink.tableCell();
sink.text( getI18nString( locale, "legend.shared" ) );
sink.tableCell_();
sink.tableRow_();
sink.tableRow();
<BUG>sink.tableCell();
iconError( sink );</BUG>
sink.tableCell_();
sink.tableCell();
sink.text( getI18nString( locale, "legend.different" ) );
| sink.tableCell( "15px" ); // according /images/icon_error_sml.gif
iconError( sink );
|
27,420 | sink.tableCaption();
sink.text( getI18nString( locale, "stats.caption" ) );
sink.tableCaption_();</BUG>
sink.tableRow();
<BUG>sink.tableHeaderCell();
sink.text( getI18nString( locale, "stats.subprojects" ) + ":" );
sink.tableHeaderCell_();</BUG>
sink.tableCell();
sink.text( String.valueOf( reactorProjects.size() ) );
s... | sink.bold();
sink.bold_();
sink.tableCaption_();
sink.tableHeaderCell( headerCellWidth );
sink.text( getI18nString( locale, "stats.subprojects" ) );
sink.tableHeaderCell_();
|
27,421 | sink.tableCell();
sink.text( String.valueOf( reactorProjects.size() ) );
sink.tableCell_();
sink.tableRow_();
sink.tableRow();
<BUG>sink.tableHeaderCell();
sink.text( getI18nString( locale, "stats.dependencies" ) + ":" );
sink.tableHeaderCell_();</BUG>
sink.tableCell();
sink.text( String.valueOf( depCount ) );
| sink.tableHeaderCell( headerCellWidth );
sink.text( getI18nString( locale, "stats.dependencies" ) );
sink.tableHeaderCell_();
|
27,422 | sink.text( String.valueOf( convergence ) + "%" );
sink.bold_();
sink.tableCell_();
sink.tableRow_();
sink.tableRow();
<BUG>sink.tableHeaderCell();
sink.text( getI18nString( locale, "stats.readyrelease" ) + ":" );
sink.tableHeaderCell_();</BUG>
sink.tableCell();
if ( convergence >= PERCENTAGE && snapshotCount <= 0 )
| sink.tableHeaderCell( headerCellWidth );
sink.text( getI18nString( locale, "stats.readyrelease" ) );
sink.tableHeaderCell_();
|
27,423 | {
ReverseDependencyLink p1 = (ReverseDependencyLink) o1;
ReverseDependencyLink p2 = (ReverseDependencyLink) o2;
return p1.getProject().getId().compareTo( p2.getProject().getId() );
}
<BUG>else
{</BUG>
return 0;
}
}
| iconError( sink );
|
27,424 | ResourceActionsUtil.getSocialEquityActionMapping(
className, actionId);
List<SocialEquitySetting> equitySettings =
socialEquitySettingPersistence.findByG_C_A(
groupId, classNameId, actionId);
<BUG>if (equityActionMapping == null && equitySettings.isEmpty()) {
</BUG>
socialEquitySettings = Collections.emptyList();
_port... | if ((equityActionMapping == null) && equitySettings.isEmpty()) {
|
27,425 | package com.liferay.portlet.social.model.impl;
import com.liferay.portlet.social.model.SocialEquityActionMapping;
import com.liferay.portlet.social.model.SocialEquitySettingConstants;
public class SocialEquitySettingImpl extends SocialEquitySettingBaseImpl {
public SocialEquitySettingImpl() {
<BUG>}
public SocialEquity... | [DELETED] |
27,426 | }
}
});
}
} else {
<BUG>if (n <= m) {
for (int i = 0; i < n; i++) {
for (int j = 0; j < m; j++) {</BUG>
a[i][j] = operator.applyAsBoolean(a[i][j]);
}
| public boolean[] row(final int rowIndex) {
N.checkArgument(rowIndex >= 0 && rowIndex < n, "Invalid row Index: %s", rowIndex);
return a[rowIndex];
|
27,427 | }
}
});
}
} else {
<BUG>if (n <= m) {
for (int i = 0; i < n; i++) {
for (int j = 0; j < m; j++) {</BUG>
result[i][j] = zipFunction.apply(a[i][j], b[i][j]);
}
| public boolean get(final int i, final int j) {
return a[i][j];
|
27,428 | }
}
});
}
} else {
<BUG>if (n <= m) {
for (int i = 0; i < n; i++) {
for (int j = 0; j < m; j++) {</BUG>
result[i][j] = zipFunction.apply(a[i][j], b[i][j], c[i][j]);
}
| return new BooleanMatrix(c);
|
27,429 | }
public AsyncExecutor(int maxConcurrentThreadNumber, long keepAliveTime, TimeUnit unit) {
this.maxConcurrentThreadNumber = maxConcurrentThreadNumber;
this.keepAliveTime = keepAliveTime;
this.unit = unit;
<BUG>}
public AsyncExecutor(final ExecutorService executorService) {
this(8, 300, TimeUnit.SECONDS);
this.executorS... | [DELETED] |
27,430 | results.add(execute(cmd));
}
return results;
}
public <T> CompletableFuture<T> execute(final Callable<T> command) {
<BUG>final CompletableFuture<T> future = new CompletableFuture<T>(this, command);
getExecutorService().execute(future);</BUG>
return future;
}
public <T> List<CompletableFuture<T>> execute(final Callable<... | final CompletableFuture<T> future = new CompletableFuture<>(this, command);
getExecutorService().execute(future);
|
27,431 | 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;
|
27,432 | MBMessage.class.getName(), message.getMessageId(), false);
}
int status = oldStatus;
if (oldStatus == WorkflowConstants.STATUS_PENDING) {
status = WorkflowConstants.STATUS_DRAFT;
<BUG>}
trashVersionLocalService.addTrashVersion(
trashEntryId, MBMessage.class.getName(), message.getMessageId(),
status);
Indexer indexer = ... | if (oldStatus != WorkflowConstants.STATUS_APPROVED) {
trashEntryId, MBMessage.class.getName(),
message.getMessageId(), status);
Indexer indexer = IndexerRegistryUtil.nullSafeGetIndexer(
|
27,433 | if (message.isDiscussion()) {
continue;
}
TrashVersion trashVersion = trashVersionLocalService.fetchVersion(
trashEntryId, MBMessage.class.getName(),
<BUG>message.getMessageId());
int oldStatus = trashVersion.getStatus();
message.setStatus(oldStatus);</BUG>
mbMessagePersistence.update(message);
userIds.add(message.getU... | int oldStatus = WorkflowConstants.STATUS_APPROVED;
if (trashVersion != null) {
message.setStatus(oldStatus);
|
27,434 | mbMessagePersistence.update(message);
userIds.add(message.getUserId());
if (oldStatus == WorkflowConstants.STATUS_APPROVED) {
assetEntryLocalService.updateVisible(
MBMessage.class.getName(), message.getMessageId(), true);
<BUG>}
trashVersionLocalService.deleteTrashVersion(trashVersion);
Indexer indexer = IndexerRegistr... | if (trashVersion != null) {
Indexer indexer = IndexerRegistryUtil.nullSafeGetIndexer(
|
27,435 | continue;
}
TrashVersion trashVersion =
trashVersionLocalService.fetchVersion(
trashEntryId, MBCategory.class.getName(),
<BUG>category.getCategoryId());
category.setStatus(trashVersion.getStatus());
mbCategoryPersistence.update(category);
trashVersionLocalService.deleteTrashVersion(trashVersion);
restoreDependentFromT... | int oldStatus = category.getStatus();
category.setStatus(WorkflowConstants.STATUS_IN_TRASH);
if (oldStatus != WorkflowConstants.STATUS_APPROVED) {
trashVersionLocalService.addTrashVersion(
category.getCategoryId(), oldStatus);
moveDependentsToTrash(
|
27,436 | public static final QName XXFORMS_MENU_APPEARANCE_QNAME = new QName("menu", XFormsConstants.XXFORMS_NAMESPACE);
public static final QName XXFORMS_AUTOCOMPLETE_APPEARANCE_QNAME = new QName("autocomplete", XFormsConstants.XXFORMS_NAMESPACE);
public static final QName XXFORMS_AUTOSIZE_APPEARANCE_QNAME = new QName("autosiz... | public static final QName XXFORMS_FIELDSET_APPEARANCE_QNAME = new QName("fieldset", XFormsConstants.XXFORMS_NAMESPACE);
public static final QName XXFORMS_TARGET_QNAME = new QName("target", XFormsConstants.XXFORMS_NAMESPACE);
|
27,437 | outputLabelHintHelpAlert(handlerContext, labelAttributes, effectiveGroupId, labelValue);
}</BUG>
}
public void end(String uri, String localname, String qName) throws SAXException {
<BUG>final String xhtmlPrefix = handlerContext.findXHTMLPrefix();
final String spanQName = XMLUtils.buildQName(xhtmlPrefix, "span");
handl... | final String groupElementName = isFieldsetAppearance ? "fieldset" : "span";
final String groupElementQName = XMLUtils.buildQName(xhtmlPrefix, groupElementName);
handlerContext.getController().getOutput().endElement(XMLConstants.XHTML_NAMESPACE_URI, groupElementName, groupElementQName);
|
27,438 | import com.codingforcookies.betterrecords.api.connection.RecordConnection;
import com.codingforcookies.betterrecords.api.wire.IRecordWireManipulator;
import com.codingforcookies.betterrecords.common.block.tile.TileEntityRecordPlayer;
import com.codingforcookies.betterrecords.common.lib.StaticInfo;
import net.minecraft.... | import net.minecraft.client.renderer.block.model.ItemCameraTransforms;
import net.minecraft.client.renderer.tileentity.TileEntitySpecialRenderer;
|
27,439 | package com.codingforcookies.betterrecords.client.render;
import com.codingforcookies.betterrecords.common.block.tile.TileEntityRecordEtcher;
import com.codingforcookies.betterrecords.common.lib.StaticInfo;
<BUG>import net.minecraft.client.Minecraft;
import net.minecraft.client.renderer.tileentity.TileEntitySpecialRend... | import net.minecraft.client.renderer.block.model.ItemCameraTransforms;
import net.minecraft.client.renderer.tileentity.TileEntitySpecialRenderer;
|
27,440 | 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;
|
27,441 | 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;
|
27,442 | 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"),
|
27,443 | 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] |
27,444 | 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) {
|
27,445 | 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;
|
27,446 | e.printStackTrace();
}
filePlayback=null;
}
@Override
<BUG>public void stop() { if ( filePlayback!=null ) filePlayback.stop(); }
void initFiles() throws FileNotFoundException {</BUG>
if ((dataDir.length() != 0) && !dataDir.endsWith("/")) { dataDir = dataDir + "/"; } // guard path if needed
String samples_str = dataDir ... | @Override public boolean isrunning(){ if ( filePlayback!=null ) return filePlayback.isrunning(); return false; }
void initFiles() throws FileNotFoundException {
|
27,447 | public class BufferMonitor extends Thread implements FieldtripBufferMonitor {
public static final String TAG = BufferMonitor.class.toString();
private final Context context;
private final SparseArray<BufferConnectionInfo> clients = new SparseArray<BufferConnectionInfo>();
private final BufferInfo info;
<BUG>private fin... | [DELETED] |
27,448 | public static final String CLIENT_INFO_TIME = "c_time";
public static final String CLIENT_INFO_WAITTIMEOUT = "c_waitTimeout";
public static final String CLIENT_INFO_CONNECTED = "c_connected";
public static final String CLIENT_INFO_CHANGED = "c_changed";
public static final String CLIENT_INFO_DIFF = "c_diff";
<BUG>publi... | public static final int THREAD_INFO_TYPE = 0;
|
27,449 | package nl.dcc.buffer_bci.bufferclientsservice;
import android.os.Parcel;
import android.os.Parcelable;
<BUG>import nl.dcc.buffer_bci.bufferservicecontroller.C;
public class ThreadInfo implements Parcelable {</BUG>
public static final Creator<ThreadInfo> CREATOR = new Creator<ThreadInfo>() {
@Override
public ThreadInfo... | import nl.dcc.buffer_bci.C;
public class ThreadInfo implements Parcelable {
|
27,450 | import com.canoo.dolphin.client.ControllerProxy;
import com.canoo.dolphin.impl.InternalAttributesBean;
import com.canoo.dolphin.impl.PlatformConstants;
import com.canoo.dolphin.util.Assert;
import org.opendolphin.core.client.ClientDolphin;
<BUG>import java.util.concurrent.CompletableFuture;
public class ControllerProxy... | import java.util.function.Function;
public class ControllerProxyFactoryImpl implements ControllerProxyFactory {
|
27,451 | @Override
public <T> CompletableFuture<ControllerProxy<T>> create(String name) {
Assert.requireNonBlank(name, "name");
final InternalAttributesBean bean = platformBeanRepository.getInternalAttributesBean();
bean.setControllerName(name);
<BUG>return dolphinCommandHandler.invokeDolphinCommand(PlatformConstants.REGISTER_C... | return dolphinCommandHandler.invokeDolphinCommand(PlatformConstants.REGISTER_CONTROLLER_COMMAND_NAME).thenApply(new Function<Void, ControllerProxy<T>>() {
public ControllerProxy<T> apply(Void aVoid) {
|
27,452 | import org.opendolphin.core.client.ClientDolphin;
public class ClientPlatformBeanRepository {
private final ClientDolphin dolphin;
private final Converters converters;
private InternalAttributesBean internalAttributesBean;
<BUG>public ClientPlatformBeanRepository(ClientDolphin dolphin, BeanRepository beanRepository, Ev... | public ClientPlatformBeanRepository(final ClientDolphin dolphin, final BeanRepository beanRepository, final EventDispatcher dispatcher, final Converters converters) {
|
27,453 | };
}
@Override
public Thread newThread(final Runnable task) {
Assert.requireNonNull(task, "task");
<BUG>return AccessController.doPrivileged((PrivilegedAction<Thread>) () -> {
final Thread backgroundThread = new Thread(task);</BUG>
backgroundThread.setName("Dolphin-Platform-Background-Thread" + threadNumber.getAndIncr... | return AccessController.doPrivileged(new PrivilegedAction<Thread>() {
public Thread run() {
final Thread backgroundThread = new Thread(task);
|
27,454 | try {
backgroundThread.setUncaughtExceptionHandler(uncaughtExceptionHandler);
} finally {
uncaughtExceptionHandlerLock.unlock();
}
<BUG>return backgroundThread;
});</BUG>
}
@Override
public void setUncaughtExceptionHandler(Thread.UncaughtExceptionHandler uncaughtExceptionHandler) {
| });
|
27,455 | Assert.requireNonNull(clientConfiguration, "clientConfiguration");
final CompletableFuture<ClientContext> result = new CompletableFuture<>();
Level openDolphinLogLevel = clientConfiguration.getDolphinLogLevel();
Logger openDolphinLogger = Logger.getLogger("org.opendolphin");
openDolphinLogger.setLevel(openDolphinLogLev... | clientConfiguration.getBackgroundExecutor().execute(new Runnable() {
@Override
public void run() {
try {
|
27,456 | import org.apache.http.client.HttpClient;
import org.opendolphin.core.client.ClientDolphin;
import java.util.concurrent.CompletableFuture;
import java.util.concurrent.ExecutionException;
import java.util.concurrent.Executors;
<BUG>import java.util.concurrent.TimeUnit;
public class ClientContextImpl implements ClientCon... | import java.util.function.BiFunction;
public class ClientContextImpl implements ClientContext {
|
27,457 | final PresentationModel classModel = classModels.get(0);
final List<Attribute> classAttributes = classModel.getAttributes();
assertThat(classAttributes, hasSize(10));
for(Attribute attribute : classAttributes) {
if (PlatformConstants.JAVA_CLASS.equals(attribute.getPropertyName())) {
<BUG>assertThat(attribute.getValue()... | assertThat(attribute.getValue().toString(), is(PrimitiveDataTypesModel.class.getName()));
|
27,458 | import com.canoo.dolphin.util.Callback;
import java.util.List;
import java.util.concurrent.CopyOnWriteArrayList;
public class ForwardableCallback<T> implements Callback<T> {
private List<Callback<T>> registeredCallbacks = new CopyOnWriteArrayList<>();
<BUG>public Subscription register(Callback<T> callback) {
</BUG>
Ass... | public Subscription register(final Callback<T> callback) {
|
27,459 | package com.vaadin.addon.spreadsheet.action;
<BUG>import org.apache.poi.ss.usermodel.Comment;
import org.apache.poi.ss.util.CellRangeAddress;</BUG>
import org.apache.poi.ss.util.CellReference;
import com.vaadin.addon.spreadsheet.Spreadsheet;
import com.vaadin.addon.spreadsheet.Spreadsheet.SelectionChangeEvent;
| import org.apache.poi.ss.usermodel.Cell;
import org.apache.poi.ss.usermodel.Row;
import org.apache.poi.ss.usermodel.Sheet;
import org.apache.poi.ss.util.CellRangeAddress;
|
27,460 | package com.vaadin.addon.spreadsheet.test;
<BUG>import com.vaadin.addon.spreadsheet.elements.SheetCellElement;
import com.vaadin.addon.spreadsheet.elements.SpreadsheetElement;
import com.vaadin.addon.spreadsheet.test.fixtures.TestFixtures;
import com.vaadin.testbench.parallel.Browser;</BUG>
import org.junit.Test;
| import org.junit.Ignore;
|
27,461 | public void removeRow_removeRowWithComment_commentIsRemoved() {
skipBrowser("Context click does not work with PhantomJS and Firefox", Browser.PHANTOMJS, Browser.FIREFOX);
headerPage.createNewSpreadsheet();</BUG>
headerPage.loadFile("cell_comments.xlsx", this); // A1 has a comment
<BUG>final SpreadsheetElement spreadshe... | skipBrowser("Context click does not work with PhantomJS and Firefox",
headerPage.createNewSpreadsheet();
final SpreadsheetElement spreadsheet = $(SpreadsheetElement.class)
spreadsheet.getRowHeader(1).contextClick();
|
27,462 | moveMouseOverCell("A1");
assertCommentPresent(commentContains);
}
public void moveMouseOverCell(String cellAddress) {
SheetCellElement cell = $(SpreadsheetElement.class).first()
<BUG>.getCellAt(cellAddress);
WebElement cornerElement = driver.findElement(By.cssSelector(".v-spreadsheet > .corner"));
new Actions(driver).m... | WebElement cornerElement = driver
new Actions(driver).moveToElement(cornerElement)
|
27,463 | }
private void assertCommentPresent(final String text) {
waitUntil(new ExpectedCondition<Object>() {
@Override
public Object apply(WebDriver webDriver) {
<BUG>return webDriver.findElements(By.xpath(
"//div[(@class='comment-overlay-label' or @class='comment-overlay-invalidformula')" +
" and contains(text(), '" + text +... | [DELETED] |
27,464 | minX = src.getMinX();
maxX = src.getMaxX();
minY = src.getMinY();
maxY = src.getMaxY();
} else {
<BUG>iterSource = RandomIterFactory.create(src, src.getBounds(), TILE_CACHED, ARRAY_CALC);
minX = src.getMinX() + 1; // Left padding
maxX = src.getMaxX() - 2; // Right padding
minY = src.getMinY() + 1; // Top padding
max... | iterSource = getRandomIterator(src, null);
minX = src.getMinX() + leftPad; // Left padding
maxX = src.getMaxX() - rightPad; // Right padding
minY = src.getMinY() + topPad; // Top padding
maxY = src.getMaxY() - bottomPad; // Bottom padding
|
27,465 | final int lineStride = dst.getScanlineStride();
final int pixelStride = dst.getPixelStride();
final int[] bandOffsets = dst.getBandOffsets();
final byte[][] data = dst.getByteDataArrays();
final float[] warpData = new float[2 * dstWidth];
<BUG>int lineOffset = 0;
if (ctable == null) { // source does not have IndexColor... | if(hasROI && !roiContainsTile && roiIter == null){
throw new IllegalArgumentException("Error on creating the ROI iterator");
}
if (caseA || (caseB && roiContainsTile)) {
for (int h = 0; h < dstHeight; h++) {
|
27,466 | pixelOffset += pixelStride;
} // COLS LOOP
} // ROWS LOOP
}
} else {// source has IndexColorModel
<BUG>if (caseA) {
for (int h = 0; h < dstHeight; h++) {</BUG>
int pixelOffset = lineOffset;
lineOffset += lineStride;
warp.warpRect(dst.getX(), dst.getY() + h, dstWidth, 1, warpData);
| } else if (caseB) {
for (int h = 0; h < dstHeight; h++) {
|
27,467 | minX = src.getMinX();
maxX = src.getMaxX();
minY = src.getMinY();
maxY = src.getMaxY();
} else {
<BUG>iterSource = RandomIterFactory.create(src, src.getBounds(), TILE_CACHED, ARRAY_CALC);
minX = src.getMinX() + 1; // Left padding
maxX = src.getMaxX() - 2; // Right padding
minY = src.getMinY() + 1; // Top padding
max... | iterSource = getRandomIterator(src, null);
minX = src.getMinX() + leftPad; // Left padding
maxX = src.getMaxX() - rightPad; // Right padding
minY = src.getMinY() + topPad; // Top padding
maxY = src.getMaxY() - bottomPad; // Bottom padding
|
27,468 | final int pixelStride = dst.getPixelStride();
final int[] bandOffsets = dst.getBandOffsets();
final short[][] data = dst.getShortDataArrays();
final float[] warpData = new float[2 * dstWidth];
int lineOffset = 0;
<BUG>if (caseA) {
for (int h = 0; h < dstHeight; h++) {</BUG>
int pixelOffset = lineOffset;
lineOffset += l... | if(hasROI && !roiContainsTile && roiIter == null){
throw new IllegalArgumentException("Error on creating the ROI iterator");
}
if (caseA || (caseB && roiContainsTile)) {
for (int h = 0; h < dstHeight; h++) {
|
27,469 | minX = src.getMinX();
maxX = src.getMaxX();
minY = src.getMinY();
maxY = src.getMaxY();
} else {
<BUG>iterSource = RandomIterFactory.create(src, src.getBounds(), TILE_CACHED, ARRAY_CALC);
minX = src.getMinX() + 1; // Left padding
maxX = src.getMaxX() - 2; // Right padding
minY = src.getMinY() + 1; // Top padding
max... | iterSource = getRandomIterator(src, null);
minX = src.getMinX() + leftPad; // Left padding
maxX = src.getMaxX() - rightPad; // Right padding
minY = src.getMinY() + topPad; // Top padding
maxY = src.getMaxY() - bottomPad; // Bottom padding
|
27,470 | final int pixelStride = dst.getPixelStride();
final int[] bandOffsets = dst.getBandOffsets();
final short[][] data = dst.getShortDataArrays();
final float[] warpData = new float[2 * dstWidth];
int lineOffset = 0;
<BUG>if (caseA) {
for (int h = 0; h < dstHeight; h++) {</BUG>
int pixelOffset = lineOffset;
lineOffset += l... | if(hasROI && !roiContainsTile && roiIter == null){
throw new IllegalArgumentException("Error on creating the ROI iterator");
}
if (caseA || (caseB && roiContainsTile)) {
for (int h = 0; h < dstHeight; h++) {
|
27,471 | minX = src.getMinX();
maxX = src.getMaxX();
minY = src.getMinY();
maxY = src.getMaxY();
} else {
<BUG>iterSource = RandomIterFactory.create(src, src.getBounds(), TILE_CACHED, ARRAY_CALC);
minX = src.getMinX() + 1; // Left padding
maxX = src.getMaxX() - 2; // Right padding
minY = src.getMinY() + 1; // Top padding
max... | iterSource = getRandomIterator(src, null);
minX = src.getMinX() + leftPad; // Left padding
maxX = src.getMaxX() - rightPad; // Right padding
minY = src.getMinY() + topPad; // Top padding
maxY = src.getMaxY() - bottomPad; // Bottom padding
|
27,472 | final int pixelStride = dst.getPixelStride();
final int[] bandOffsets = dst.getBandOffsets();
final int[][] data = dst.getIntDataArrays();
final float[] warpData = new float[2 * dstWidth];
int lineOffset = 0;
<BUG>if (caseA) {
for (int h = 0; h < dstHeight; h++) {</BUG>
int pixelOffset = lineOffset;
lineOffset += lineS... | if(hasROI && !roiContainsTile && roiIter == null){
throw new IllegalArgumentException("Error on creating the ROI iterator");
}
if (caseA || (caseB && roiContainsTile)) {
for (int h = 0; h < dstHeight; h++) {
|
27,473 | minX = src.getMinX();
maxX = src.getMaxX();
minY = src.getMinY();
maxY = src.getMaxY();
} else {
<BUG>iterSource = RandomIterFactory.create(src, src.getBounds(), TILE_CACHED, ARRAY_CALC);
minX = src.getMinX() + 1; // Left padding
maxX = src.getMaxX() - 2; // Right padding
minY = src.getMinY() + 1; // Top padding
max... | iterSource = getRandomIterator(src, null);
minX = src.getMinX() + leftPad; // Left padding
maxX = src.getMaxX() - rightPad; // Right padding
minY = src.getMinY() + topPad; // Top padding
maxY = src.getMaxY() - bottomPad; // Bottom padding
|
27,474 | final int pixelStride = dst.getPixelStride();
final int[] bandOffsets = dst.getBandOffsets();
final float[][] data = dst.getFloatDataArrays();
final float[] warpData = new float[2 * dstWidth];
int lineOffset = 0;
<BUG>if (caseA) {
for (int h = 0; h < dstHeight; h++) {</BUG>
int pixelOffset = lineOffset;
lineOffset += l... | if(hasROI && !roiContainsTile && roiIter == null){
throw new IllegalArgumentException("Error on creating the ROI iterator");
}
if (caseA || (caseB && roiContainsTile)) {
for (int h = 0; h < dstHeight; h++) {
|
27,475 | minX = src.getMinX();
maxX = src.getMaxX();
minY = src.getMinY();
maxY = src.getMaxY();
} else {
<BUG>iterSource = RandomIterFactory.create(src, src.getBounds(), TILE_CACHED, ARRAY_CALC);
minX = src.getMinX() + 1; // Left padding
maxX = src.getMaxX() - 2; // Right padding
minY = src.getMinY() + 1; // Top padding
max... | iterSource = getRandomIterator(src, null);
minX = src.getMinX() + leftPad; // Left padding
maxX = src.getMaxX() - rightPad; // Right padding
minY = src.getMinY() + topPad; // Top padding
maxY = src.getMaxY() - bottomPad; // Bottom padding
|
27,476 | final int pixelStride = dst.getPixelStride();
final int[] bandOffsets = dst.getBandOffsets();
final double[][] data = dst.getDoubleDataArrays();
final float[] warpData = new float[2 * dstWidth];
int lineOffset = 0;
<BUG>if (caseA) {
for (int h = 0; h < dstHeight; h++) {</BUG>
int pixelOffset = lineOffset;
lineOffset +=... | if(hasROI && !roiContainsTile && roiIter == null){
throw new IllegalArgumentException("Error on creating the ROI iterator");
}
if (caseA || (caseB && roiContainsTile)) {
for (int h = 0; h < dstHeight; h++) {
|
27,477 | entry = queue.pop(consumer, partitioner);
assertTrue(Bytes.equals(entry.getValue(), valueOne));
assertTrue(queue.ack(entry));
entry = queue.pop(consumer, partitioner);
assertTrue(Bytes.equals(entry.getValue(), valueTwo));
<BUG>assertTrue(queue.ack(entry));
}</BUG>
@Test
public void testSingleConsumerThreaded() throws E... | queue.sync = false;
assertNull(queue.pop(consumer, partitioner));
queue.sync = true;
}
|
27,478 | import org.apache.hadoop.fs.FileSystem;
import org.apache.hadoop.fs.LocalFileSystem;
import org.apache.hadoop.fs.Path;
import org.apache.hadoop.fs.permission.FsPermission;
import org.apache.hadoop.util.Progressable;
<BUG>import static org.apache.hadoop.fs.s3a.S3AConstants.*;
public class S3AFileSystem extends FileSyste... | import static org.apache.hadoop.fs.s3a.Constants.*;
public class S3AFileSystem extends FileSystem {
|
27,479 | public void initialize(URI name, Configuration conf) throws IOException {
super.initialize(name, conf);
uri = URI.create(name.getScheme() + "://" + name.getAuthority());
workingDir = new Path("/user", System.getProperty("user.name")).makeQualified(this.uri,
this.getWorkingDirectory());
<BUG>String accessKey = conf.get(... | String accessKey = conf.get(NEW_ACCESS_KEY, conf.get(OLD_ACCESS_KEY, null));
String secretKey = conf.get(NEW_SECRET_KEY, conf.get(OLD_SECRET_KEY, null));
|
27,480 | } else {
accessKey = userInfo;
}
}
AWSCredentialsProviderChain credentials = new AWSCredentialsProviderChain(
<BUG>new S3ABasicAWSCredentialsProvider(accessKey, secretKey),
new InstanceProfileCredentialsProvider(),
new S3AAnonymousAWSCredentialsProvider()
);</BUG>
bucket = name.getHost();
| new BasicAWSCredentialsProvider(accessKey, secretKey),
new AnonymousAWSCredentialsProvider()
|
27,481 |
awsConf.setSocketTimeout(conf.getInt(SOCKET_TIMEOUT, DEFAULT_SOCKET_TIMEOUT));
</BUG>
s3 = new AmazonS3Client(credentials, awsConf);
<BUG>maxKeys = conf.getInt(MAX_PAGING_KEYS, DEFAULT_MAX_PAGING_KEYS);
partSize = conf.getLong(MULTIPART_SIZE, DEFAULT_MULTIPART_SIZE);
partSizeThreshold = conf.getInt(MIN_MULTIPART_THR... | new InstanceProfileCredentialsProvider(),
new AnonymousAWSCredentialsProvider()
bucket = name.getHost();
ClientConfiguration awsConf = new ClientConfiguration();
awsConf.setMaxConnections(conf.getInt(NEW_MAXIMUM_CONNECTIONS, conf.getInt(OLD_MAXIMUM_CONNECTIONS, DEFAULT_MAXIMUM_CONNECTIONS)));
awsConf.setProtocol(conf.g... |
27,482 | cannedACL = null;
}
if (!s3.doesBucketExist(bucket)) {
throw new IOException("Bucket " + bucket + " does not exist");
}
<BUG>boolean purgeExistingMultipart = conf.getBoolean(PURGE_EXISTING_MULTIPART, DEFAULT_PURGE_EXISTING_MULTIPART);
long purgeExistingMultipartAge = conf.getLong(PURGE_EXISTING_MULTIPART_AGE, DEFAULT_... | boolean purgeExistingMultipart = conf.getBoolean(NEW_PURGE_EXISTING_MULTIPART, conf.getBoolean(OLD_PURGE_EXISTING_MULTIPART, DEFAULT_PURGE_EXISTING_MULTIPART));
long purgeExistingMultipartAge = conf.getLong(NEW_PURGE_EXISTING_MULTIPART_AGE, conf.getLong(OLD_PURGE_EXISTING_MULTIPART_AGE, DEFAULT_PURGE_EXISTING_MULTIPART... |
27,483 | import java.io.BufferedOutputStream;
import java.io.File;
import java.io.FileOutputStream;
import java.io.IOException;
import java.io.OutputStream;
<BUG>import static org.apache.hadoop.fs.s3a.S3AConstants.*;
public class S3AOutputStream extends OutputStream {</BUG>
private OutputStream backupStream;
private File backup... | import static org.apache.hadoop.fs.s3a.Constants.*;
public class S3AOutputStream extends OutputStream {
|
27,484 | this.client = client;
this.progress = progress;
this.fs = fs;
this.cannedACL = cannedACL;
this.statistics = statistics;
<BUG>partSize = conf.getLong(MULTIPART_SIZE, DEFAULT_MULTIPART_SIZE);
partSizeThreshold = conf.getInt(MIN_MULTIPART_THRESHOLD, DEFAULT_MIN_MULTIPART_THRESHOLD);
</BUG>
if (conf.get(BUFFER_DIR, null) ... | partSize = conf.getLong(OLD_MULTIPART_SIZE, DEFAULT_MULTIPART_SIZE);
partSizeThreshold = conf.getInt(OLD_MIN_MULTIPART_THRESHOLD, DEFAULT_MIN_MULTIPART_THRESHOLD);
|
27,485 | customTokens.put("%%mlFinalForestsPerHost%%", hubConfig.finalForestsPerHost.toString());
customTokens.put("%%mlTraceAppserverName%%", hubConfig.traceHttpName);
customTokens.put("%%mlTracePort%%", hubConfig.tracePort.toString());
customTokens.put("%%mlTraceDbName%%", hubConfig.traceDbName);
customTokens.put("%%mlTraceFo... | customTokens.put("%%mlTriggersDbName%%", hubConfig.triggersDbName);
customTokens.put("%%mlSchemasDbName%%", hubConfig.schemasDbName);
}
|
27,486 | package com.epam.ta.reportportal.ws.model;
<BUG>import com.google.common.base.MoreObjects;
import com.google.common.base.Preconditions;</BUG>
import java.util.Collection;
import java.util.Iterator;
public class Page<T> implements Iterable<T> {
| [DELETED] |
27,487 | long totalElements;
long totalPages;
PageMetadata(){
}
public PageMetadata(long size, long number, long totalElements, long totalPages) {
<BUG>Preconditions.checkArgument(size > -1, "Size must not be negative!");
Preconditions.checkArgument(number > -1, "Number must not be negative!");
Preconditions.checkArgument(total... | this.number = number;
|
27,488 | public long getTotalPages() {
return totalPages;
}
@Override
public String toString() {
<BUG>return MoreObjects.toStringHelper(this).add("number", number).add("size", size).add("totalElements", totalElements)
.add("totalPages", totalPages).toString();
}</BUG>
}
@Override
| [DELETED] |
27,489 | myLanguageSpecificCaches = new HashMap<Language, LanguageConceptsCache>();
}
fireCacheChanged();
}
public static Set<String> getParentsNames(String conceptFqName) {
<BUG>return ConceptRegistry.getInstance().getConceptDescriptor(conceptFqName).getParentsNames();
</BUG>
}
public Set<String> _getParentsNames(final String ... | return ConceptRegistry.getInstance().getConceptDescriptor(conceptFqName).structure().getParentsNames();
|
27,490 | public static ImmutableSet<String> getAncestors(String conceptName, Set<String> parents) {
List<String> result = new ArrayList<String>();
result.add(conceptName);
ConceptRegistry conceptRegistry = ConceptRegistry.getInstance();
for (String parent : parents) {
<BUG>result.addAll(conceptRegistry.getConceptDescriptor(pare... | result.addAll(conceptRegistry.getConceptDescriptor(parent).structure().getAncestorsNames());
|
27,491 | import jetbrains.mps.util.NameUtil;
import org.jetbrains.annotations.NotNull;
import java.util.Map;
import static com.google.common.collect.Maps.newHashMap;
public class ConceptRegistry implements ApplicationComponent {
<BUG>private final ConceptDescriptorProvider mixedDescriptorProvided = new MixedDescriptorProvider(
... | private static final DescriptorProvider<BehaviorDescriptor> INTERPRETED_BEHAVIOR = new InterpretedBehaviorProvider();
private static final DescriptorProvider<StructureDescriptor> INTERPRETED_STRUCTURE = new InterpretedStructureProvider();
private static final DescriptorProvider<ConceptDescriptor> INTERPRETED_CONCEPT_DE... |
27,492 | package org.seleniumhq.selenium.fluent;
<BUG>import org.openqa.selenium.Dimension;
import org.openqa.selenium.Point;</BUG>
import org.openqa.selenium.WebDriver;
import java.util.List;
public abstract class BaseFluentWebElement extends BaseFluentWebDriver {
| [DELETED] |
27,493 | }
public FluentSelects selects(By by) {
MultipleResult multiple = multiple(by, "select");
return newFluentSelects(multiple.getResult(), multiple.getCtx());
}
<BUG>public FluentWebElement h1() {
</BUG>
SingleResult single = single(tagName("h1"), "h1");
return newFluentWebElement(delegate, single.getResult(), single.getC... | protected BaseFluentWebElements spans() {
return newFluentWebElements(multiple(tagName("span"), "span"));
|
27,494 | import java.sql.SQLException;
import java.sql.Statement;
import java.text.MessageFormat;
import java.util.ArrayList;
import java.util.Collection;
<BUG>import java.util.Date;
import java.util.HashSet;
import java.util.List;
import java.util.Set;</BUG>
import java.util.concurrent.locks.Lock;
| import java.util.HashMap;
import java.util.Map;
import java.util.Set;
|
27,495 | if (msgin != null) {
try {
msgin.close();
} catch (IOException e) {
}
<BUG>}
}
}
protected void updateSourceSequence(SourceSequence seq)
</BUG>
throws SQLException {
| releaseResources(stmt, null);
protected void storeMessage(Identifier sid, RMMessage msg, boolean outbound)
throws IOException, SQLException {
storeMessage(connection, sid, msg, outbound);
protected void updateSourceSequence(Connection con, SourceSequence seq)
|
27,496 | } catch (SQLException ex) {
if (!isTableExistsError(ex)) {
throw ex;
} else {
LOG.fine("Table CXF_RM_SRC_SEQUENCES already exists.");
<BUG>verifyTable(SRC_SEQUENCES_TABLE_NAME, SRC_SEQUENCES_TABLE_COLS);
</BUG>
}
} finally {
stmt.close();
| verifyTable(con, SRC_SEQUENCES_TABLE_NAME, SRC_SEQUENCES_TABLE_COLS);
|
27,497 | } catch (SQLException ex) {
if (!isTableExistsError(ex)) {
throw ex;
} else {
LOG.fine("Table CXF_RM_DEST_SEQUENCES already exists.");
<BUG>verifyTable(DEST_SEQUENCES_TABLE_NAME, DEST_SEQUENCES_TABLE_COLS);
</BUG>
}
} finally {
stmt.close();
| LOG.fine("Table CXF_RM_SRC_SEQUENCES already exists.");
verifyTable(con, SRC_SEQUENCES_TABLE_NAME, SRC_SEQUENCES_TABLE_COLS);
|
27,498 | }
} finally {
stmt.close();
}
for (String tableName : new String[] {OUTBOUND_MSGS_TABLE_NAME, INBOUND_MSGS_TABLE_NAME}) {
<BUG>stmt = connection.createStatement();
try {</BUG>
stmt.executeUpdate(MessageFormat.format(CREATE_MESSAGES_TABLE_STMT, tableName));
} catch (SQLException ex) {
if (!isTableExistsError(ex)) {
| stmt = con.createStatement();
try {
stmt.executeUpdate(CREATE_DEST_SEQUENCES_TABLE_STMT);
|
27,499 | throw ex;
} else {
if (LOG.isLoggable(Level.FINE)) {
LOG.fine("Table " + tableName + " already exists.");
}
<BUG>verifyTable(tableName, MESSAGES_TABLE_COLS);
</BUG>
}
} finally {
stmt.close();
| LOG.fine("Table CXF_RM_SRC_SEQUENCES already exists.");
verifyTable(con, SRC_SEQUENCES_TABLE_NAME, SRC_SEQUENCES_TABLE_COLS);
|
27,500 | if (newCols.size() > 0) {
if (LOG.isLoggable(Level.FINE)) {
LOG.log(Level.FINE, "Table " + tableName + " needs additional columns");
}
for (String[] newCol : newCols) {
<BUG>Statement st = connection.createStatement();
try {</BUG>
st.executeUpdate(MessageFormat.format(ALTER_TABLE_STMT_STR,
tableName, newCol[0], newCol[... | Statement st = con.createStatement();
try {
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.