diff stringlengths 38 1.78k | msg_token stringlengths 9 190 |
|---|---|
<nb> public class FreeMarkerAutoConfiguration implements EnvironmentAware {
@ override
public void setEnvironment ( Environment environment ) {
- this . environment = new RelaxedPropertyResolver ( environment , STRING0 ) ;
+ this . environment = new RelaxedPropertyResolver ( environment , STRING1 ) ;
}
... | Fix freeMarker freemarker |
<nb> public class PyPackageManagerImpl extends PyPackageManager {
final String dirName = extractHelper ( name + STRING0 ) ;
try {
final String fileName = dirName + name + File . separatorChar + STRING1 ;
- getPythonProcessResult ( fileName , Collections . singletonList ( destinationDir ) , false , true , dirNam... | fixed virtualenv creation with inherited packages |
<nb> public final class JsonTransformer
private void serializePartition ( UnfilteredRowIterator partition )
{
- String key = metadata . getKeyValidator ( ) . getString ( partition . partitionKey ( ) . getKey ( ) ) ;
try
{
json . writeStartObject ( ) ;
<nb> public final class JsonTransformer
}
catch ... | push down logging code to where it s used |
<nb> public class UIHelper {
}
public static int getColorForName ( String name ) {
- if ( name . isEmpty ( ) ) {
+ if ( name == null || name . isEmpty ( ) ) {
return NUMBER0 ;
}
int colors [ ] = { NUMBER1 , NUMBER2 , NUMBER3 , NUMBER4 , | handle null names in getColorForName |
<nb> public class DirectionUtils {
}
COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ public static synchronized double getAzimuth ( Coordinate a , Coordinate b ) {
+ DirectionUtils utils = getInstance ( ) ;
+ utils . geodeticCalculator . setStartingGeographicPoint ( a . x ,... | Add a method to compute azimuths between coordinates |
<nb> public class RexsterTitanServer {
}
public void start ( ) {
- EngineController . configure ( - NUMBER0 , null ) ;
+ EngineController . configure ( - NUMBER0 , this . rexsterConfig . getString ( STRING0 , null ) ) ;
graph = TitanFactory . open ( titanConfig ) ;
final RexsterApplication ra = new Defaul... | Allow Titan Server to initialize scriptengine with a script |
<nb> public interface NewSymbol {
COMMENT
COMMENT
COMMENT
+ COMMENT
COMMENT
+ @ deprecated
NewSymbol newReference ( int startOffset , int endOffset ) ;
COMMENT | Deprecate newReference method accepting global offsets as parameter |
<nb> public class PrepareCallback extends AbstractPaxosCallback < PrepareResponse >
public synchronized void response ( MessageIn < PrepareResponse > message )
{
PrepareResponse response = message . payload ;
- logger . debug ( STRING0 , response , message . from ) ;
+ logger . trace ( STRING0 , response , me... | PrepareCallback response should not have DEBUG output |
<nb> public class EdgeDataTypes {
public static final int D2 = NUMBER0 ;
public EdgeWithDegrees ( ) { }
-
- public EdgeWithDegrees ( final Integer vertex1 , final Integer degree1 , final Integer vertex2 , final Integer degree2 ) {
- super ( vertex1 , degree1 , vertex2 , degree2 ) ;
- }
-
+
public In... | Removed faulty constructor |
<nb> public class BookViewModel {
}
} ) ;
dataStore . getBookPrice ( bookId )
- . subscribe ( new Action1 < Integer > ( ) {
+ . map ( new rx . functions . Func1 < Integer , String > ( ) {
@ override
- public void call ( Integer integer ) {
- bookPrice . onNext ( integer + STRING0 ) ;
+ public String c... | Add map for price string |
<nb>
COMMENT
COMMENT
COMMENT
+
package NAMESPACE ;
import NAMESPACE ;
<nb> import NAMESPACE ;
COMMENT
COMMENT
COMMENT
+ COMMENT
COMMENT
COMMENT
public class MockClientHttpRequest extends MockHttpOutputMessage implements ClientHttpRequest {
<nb> public class MockClientHttpRequest extends ... | Introduce isExecuted in MockClientHttpRequest |
<nb> public class Runner implements MessageConsumer {
SINGLE
List < StackFrame > frames = thread . frames ( ) ;
for ( StackFrame frame : frames ) {
- System . out . println ( STRING0 + frame ) ;
+ SINGLE
Location location = frame . location ( ) ;
String filename = null ;
try { | remove frame debugging stuff |
<nb> public class Geometry extends Spatial {
COMMENT
COMMENT
COMMENT
- @ override
- protected void setTransformRefresh ( ) {
- refreshFlags |= RF_TRANSFORM ;
- setBoundRefresh ( ) ;
- }
+ SINGLE
+ SINGLE
+ SINGLE
+ SINGLE
+ SINGLE
+ SINGLE
+ SINGLE
COMMENT
COMMENT
<nb> public class... | Removed Geometry setTransformRefresh which was identical to Spatial setTransformRefresh |
<nb> public class ClusteringIndexNamesFilter extends AbstractClusteringIndexFilter
public ClusteringIndexNamesFilter forPaging ( ClusteringComparator comparator , Clustering lastReturned , boolean inclusive )
{
- SINGLE
- int cmp = comparator . compare ( lastReturned , clusteringsInQueryOrder . first ( ) ) ; ... | Fix unecessary and broken when reversed condition |
<nb> import NAMESPACE ;
import NAMESPACE ;
public class NotificationsSettingsFragment extends PreferenceFragment {
- public static final String TAG = STRING0 ;
-
SINGLE
private static final int TYPE_COUNT = NUMBER0 ; | Removed an unused string constant |
<nb> public class ZenModeHelper {
STRING0 ,
STRING1
) ) ;
- private static final Set < String > ALARM_PACKAGES = new HashSet < String > ( Arrays . asList (
- STRING2
- ) ) ;
private static final Set < String > SYSTEM_PACKAGES = new HashSet < String > ( Arrays . asList (
STRING3 ,
STRING4
<nb> public... | Wire up CATEGORY_ALARM and CATEGORY_EVENT |
<nb> class MapServiceContextImpl implements MapServiceContext {
}
}
+ @ override
public RecordStore createRecordStore ( MapContainer mapContainer , int partitionId , MapKeyLoader keyLoader ) {
ILogger logger = nodeEngine . getLogger ( DefaultRecordStore . class ) ;
return new DefaultRecordStore ( mapConta... | Added missing Override annotation in MapServiceContextImpl |
<nb> public class FileUtils {
}
COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ public static boolean delete ( File fileOrFolder ) {
+ boolean success = false ;
+ if ( fileOrFolder . isDirectory ( ) ) {
+ File [ ] files = fileOrFolder . listFiles ( ) ;
+ if ( files != null ) {
+ ... | Add recursive delete function to FileUtils |
<nb> public class ClusterQueueTest extends HazelcastTestSupport {
assertTrue ( q1 . offer ( STRING0 + i , NUMBER0 , TimeUnit . SECONDS ) ) ;
}
h1 . getLifecycleService ( ) . shutdown ( ) ;
+ waitForShutdown ( h2 , NUMBER1 ) ;
+
for ( int i = NUMBER2 ; i < NUMBER0 ; i ++ ) {
assertTrue ( q2 . offer ( STRIN... | added waiting for shutdown complete to test support |
<nb> public final class JavassistTypeParameterMatcherGenerator {
classPool . appendClassPath ( new ClassClassPath ( NoOpTypeParameterMatcher . class ) ) ;
}
- public void appendClassPath ( ClassPath classpath ) {
+ public static void appendClassPath ( ClassPath classpath ) {
classPool . appendClassPath ( cl... | Fix an API bug in the JavassistTypeParameterMatcherGenerator where some of its methods are not static |
<nb> public abstract class WizardPopup extends AbstractPopup implements ActionListene
}
Dimension size = WizardPopup . this . getSize ( ) ;
- return size == null || size . height == NUMBER0 && size . width == NUMBER0 ? computeNotBiggerDimension ( super . getPreferredSize ( ) . getSize ( ) , p ) : size ;
+ boo... | wizard popup positioning fix fox mac medvedev |
<nb> public class MockInstantiator {
public static Object instantiate ( Class < ? > declaredType , Class < ? > actualType , @ nullable List < Object > constructorArgs , boolean useObjenesis ) {
try {
- if ( constructorArgs == null && useObjenesis && objenesisAvailable ) {
+ if ( ! declaredType . isInterface (... | don t use objenesis for interface based mocks |
<nb> public class NodeRendererSettings implements PersistentStateComponent < Element > {
if ( valueField != null ) {
final Value rgbValue = objRef . getValue ( valueField ) ;
if ( rgbValue instanceof IntegerValue ) {
- return new ColorIcon ( NUMBER0 , NUMBER1 , new Color ( ( ( IntegerValue ) rgbValue ) . value ... | consider alpha bits when rendering Colors |
<nb> public class AutoValueTest extends TestCase {
methodInSuperclass . getAnnotation ( HairyAnnotation . class ) ;
assertEquals ( annotationInSuperclass , annotationInSubclass ) ;
}
+
+ @ autovalue
+ abstract static class HProperty {
+ public abstract Object h ( ) ;
+ public static HProperty create ( O... | Failing test for hashcode of Object property h |
<nb> final class RealCall implements Call {
}
}
- Object tag ( ) {
- return originalRequest . tag ( ) ;
- }
-
@ override public void enqueue ( Callback responseCallback ) {
enqueue ( responseCallback , false ) ;
}
<nb> final class RealCall implements Call {
return originalRequest ;
}
- Obj... | Remove unused method |
<nb> public class HttpRequest {
}
COMMENT
- COMMENT
+ COMMENT
COMMENT
COMMENT
COMMENT
<nb> public class HttpRequest {
}
COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ public HttpRequest connectTimeout ( final int timeout ) {
+ connection . setConnectTimeout ( timeout )... | Add helper to set connect timeout |
<nb> public class BottomBar extends FrameLayout implements View . OnClickListener , View
if ( mItems == null || mItems . length == NUMBER0 ) {
throw new UnsupportedOperationException ( STRING0 +
STRING1 ) ;
- } else if ( tabPosition > mItems . length || tabPosition < NUMBER0 ) {
+ } else if ( tabPosition > mI... | Now throwing exceptions properly |
<nb> public interface RobolectricPackageManager {
void addActivityIcon ( Intent intent , Drawable d ) ;
+ Drawable getApplicationIcon ( String packageName ) throws PackageManager . NameNotFoundException ;
+
void setApplicationIcon ( String packageName , Drawable d ) ;
Intent getLaunchIntentForPackage ( ... | Add getApplicationIcon String to RobolectricPackageManager interface |
<nb> public class InodeFolderTest {
new InodeFile ( String . format ( STRING0 , i + NUMBER0 ) , i + NUMBER1 , NUMBER0 , NUMBER0 , System . currentTimeMillis ( ) ) ;
inodeFolder . addChild ( inodes [ i ] ) ;
}
+
+ Runtime runtime = Runtime . getRuntime ( ) ;
+ System . out . println ( String . format ( STRIN... | add memory usage output to InodeFolderTest getChildTest |
<nb> public class TestStreetMatcher {
public int getOutAngle ( ) {
return NUMBER0 ;
}
+
+ @ override
+ public void setCarSpeed ( float carSpeed ) {
+ SINGLE
+
+ }
+
}
} | Implement setCarSpeed on test street edge type |
<nb> public class Observable < T > {
}
COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ public Observable < T > finally0 ( Action0 action ) {
+ return _create ( OperationFinally . finally0 ( this , action ) ) ;
+ }
+
+ COMMENT
COMMENT
COMMENT
COMMENT | Added nonstatic Observable finally0 |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
- import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> public @ interface ManagedService {
COMMENT
COMMENT
COMMENT
- Cla... | Fix Broadcaster default |
<nb>
package NAMESPACE ;
import NAMESPACE ;
- import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ; | Removing java util Arrays import |
<nb> public class LockPatternKeyguardViewProperties implements KeyguardViewProperties
final IccCardConstants . State simState = mUpdateMonitor . getSimState ( ) ;
return ( simState == IccCardConstants . State . PIN_REQUIRED
|| simState == IccCardConstants . State . PUK_REQUIRED
- || simState == IccCardConstants... | Fix regression in SIM state handling |
<nb> public abstract class AbstractTestQueries
}
@ test
+ public void testUnionWithFilterNotInSelect ( )
+ throws Exception
+ {
+ assertQuery ( STRING0 ) ;
+ assertQuery ( STRING1 ) ;
+ assertQuery ( STRING2 ) ;
+ }
+
+ @ test
public void testSelectOnlyUnion ( )
throws Exception
{ | Add test queries for union with filter columns not present in select |
<nb>
package NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> import NAMESPACE ;
COMMENT
COMMENT
COMMENT
+ @ targetapi ( NUMBER0 )
public class ClipboardManagerApi11 extends com . fsck . k9 . helper . ClipboardManager {
public ClipboardManagerApi... | Added annotations to disable Lint warnings when we re using newer APIs |
<nb> public class ThriftToPig < M extends TBase < ? , ? > > {
+ STRING0
+ STRING1 ) ;
}
- return new FieldSchema ( fieldName , new Schema ( singleFieldToFieldSchema ( fieldName , field . getMapValueField ( ) ) ) , DataType . MAP ) ;
+ return new FieldSchema ( fieldName , new Schema ( singleFieldToFieldSchema ... | Sets map value field alias to null |
<nb> public class FavouritesListFragment extends SherlockListFragment implements Sear
}
}
locationUpdate ( location ) ;
+ setListAdapter ( favouritesAdapter ) ;
}
@ override
<nb> public class DashFavoritesFragment extends DashBaseFragment {
favorites . addView ( view ) ;
}
updateLocation ( locatio... | try setListAdapter in onResume |
<nb> public interface StructureViewTreeElement < V > extends TreeElement , Navigatable {
COMMENT
V getValue ( ) ;
- StructureViewTreeElement [ ] getChildren ( ) ;
+ StructureViewTreeElement < ? > [ ] getChildren ( ) ;
}
<nb> public abstract class TextEditorBasedStructureViewModel implements StructureView ... | generify Scala does not support raw types |
<nb> public class Glide {
return new Request < Integer > ( resourceId ) ;
}
+ COMMENT
+ COMMENT
+ COMMENT
+ public static boolean cancel ( ImageView imageView ) {
+ return cancel ( new ImageViewTarget ( imageView ) ) ;
+ }
+
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+... | Add a cancel method to glide |
<nb> public class BlenderTool {
private static File getBlenderSettingsFolder ( ) {
File blender = InstalledFileLocator . getDefault ( ) . locate ( getBlenderOsPath ( ) + STRING0 , null , false ) ;
if ( blender == null ) {
+ blender = InstalledFileLocator . getDefault ( ) . locate ( getBlenderOsPath ( ) + STRING... | use both blender versions in BlenderTool |
<nb> public class RequestPattern {
} ;
}
- public static void main ( String [ ] args ) {
- System . out . println ( new RequestPattern ( STRING0 , Parameters . one ( STRING1 , NUMBER0 ) ) . toString ( ) ) ;
- }
} | Removed some debug code |
<nb> public class SkeletonControl extends AbstractControl implements Cloneable {
@ override
public void setSpatial ( Spatial spatial ) {
+ super . setSpatial ( spatial ) ;
if ( spatial != null ) {
Node node = ( Node ) spatial ;
targets = findTargets ( node ) ; | added a call to super setSpatial in setSpatial |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
- import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ; | Java Removed unused import |
<nb> public final class UpgradeService {
StringBuilder changeLog = new StringBuilder ( ) ;
if ( from >= V4_0_6 && from < V4_0_6_1 ) {
- newVersionString ( changeLog , STRING0 , new String [ ] {
+ newVersionString ( changeLog , STRING1 , new String [ ] {
STRING2 +
- STRING3 +
- STRING4
+ STRING5 +
+ ... | Updated upgrade message |
<nb> class Main {
language = Language . ENGLISH ;
}
Main prg = new Main ( verbose , language ) ;
- if ( recursive )
+ if ( recursive ) {
prg . runRecursive ( filename ) ;
- else
- prg . getFilteredText ( filename ) ;
+ } else {
+ String text = prg . getFilteredText ( filename ) ;
+ prg . checkText... | fix checking single text |
<nb> public class LimitOperator
@ override
protected Page computeNext ( )
{
- if ( ! sourceIterator . hasNext ( ) || remainingLimit <= NUMBER0 ) {
+ if ( remainingLimit <= NUMBER0 || ! sourceIterator . hasNext ( ) ) {
return endOfData ( ) ;
} | Check for limit before source iterator |
<nb>
package NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> public class ServletEnvironment {
public void setSessionHandler ( SessionHandler sessionHandler ) {
handler . setSessionHandler ( sessionHandler ) ;
}
+
+ public void ... | Add support for security handlers |
<nb> public class GzipFilterContentLengthTest
COMMENT
COMMENT
COMMENT
- COMMENT
+ COMMENT
COMMENT
@ test
public void testIsNotGzipCompressedTiny ( ) throws Exception
<nb> public class GzipFilterContentLengthTest
COMMENT
COMMENT
COMMENT
- COMMENT
+ COMMENT
COMMENT
@ test
public void tes... | fixing javadoc errors |
<nb> import static NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
- import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ; | Remove unused import |
<nb> public class Mesh {
} else {
if ( indices . getNumIndices ( ) > NUMBER0 )
Gdx . gl11 . glDrawElements ( primitiveType , count ,
- GL10 . GL_UNSIGNED_SHORT , offset ) ;
+ GL10 . GL_UNSIGNED_SHORT , offset * NUMBER1 ) ;
else
Gdx . gl11 . glDrawArrays ( primitiveType , offset , count ) ;
}
<nb> publ... | fixed bug in Mesh affected indexed rendering with offsetting |
<nb> public class OptimisticBulkOperationsTest
return STRING0 ;
}
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
public void testBulkOperationsFailureExpected ( ) throws Exception
{
super . testBulkOperations ( ) ; | Add comment on reason for FailureExpected |
<nb> public abstract class EncodedValueAdaptor {
EncodedIndexedItemReference methodEncodedReference = ( EncodedIndexedItemReference ) encodedValue . getValue ( ) ;
return new EncodedIndexedItemAdaptor ( new MethodReference ( ( MethodIdItem ) methodEncodedReference . getValue ( ) ) ) ;
case VALUE_NULL :
- return... | Added support for the null encoded literal |
<nb> public class DrawHandler extends Handler {
private int mSkipFrames ;
- private static final int MAX_RECORD_SIZE = NUMBER0 ;
+ private static final int MAX_RECORD_SIZE = NUMBER1 ;
private LinkedList < Long > mDrawTimes = new LinkedList < Long > ( ) ;
<nb> public class DrawHandler extends Handler {... | limit the range of mLastDeltaTime |
<nb> public class ArrayUtils
return ( T [ ] ) EmptyArray . OBJECT ;
}
- int bucket = ( ( System . identityHashCode ( kind ) / NUMBER0 ) & NUMBER1 ) % CACHE_SIZE ;
+ int bucket = ( kind . hashCode ( ) & NUMBER1 ) % CACHE_SIZE ;
Object cache = sCache [ bucket ] ;
if ( cache == null || cache . getClass ( )... | Change EmptyArray System identityHashCode to Object hashCode |
<nb> public class GremlinPluginFunctionalTest extends AbstractRestFunctionalTestBase
}
@ test
- @ documented
@ graph ( value = { STRING0 } , autoIndexNodes = true )
public void testIndexIteration ( ) throws UnsupportedEncodingException
{ | Removed a Documented tag that shouldn t be there anyhow |
<nb> public class ActionBarWrapper extends ActionBar implements android . app . ActionBar
public void onTabSelected ( android . app . ActionBar . Tab tab , android . app . FragmentTransaction ft ) {
if ( mListener != null ) {
- if ( mFragmentTransaction == null ) {
- if ( mActivity instanceof SherlockFragment... | Coding style tweaks |
<nb> package NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
COMMENT
<nb> import NAMESPACE ;
public class StringStreamSource implements StreamSource {
String string ;
+ String byteArrayEncoding = STRING0 ;
public StringStreamSource ( String string ) {
- this . string... | enables StringStreamSource getInputStream return a byte array in |
<nb> import NAMESPACE ;
COMMENT
public class IncProjectBuilder {
private static final Logger LOG = Logger . getInstance ( STRING0 ) ;
- private static final Logger LocalLOG = Logger . getInstance ( STRING1 ) ;
public static final String COMPILE_SERVER_NAME = STRING2 ;
private static final String CLASSPATH... | remove unused filed |
<nb> public class ICU_Delegate {
result . longStandAloneMonthNames = result . longMonthNames ;
result . shortStandAloneMonthNames = result . shortMonthNames ;
+ SINGLE
+ SINGLE
result . longWeekdayNames = new String [ ] {
- STRING0 , STRING1 , STRING2 , STRING3 , STRING4 , STRING5 , STRING6 } ;
+ STRING... | Fix DatePicker and Calendar widget in layoutlib |
<nb> public class Oracle implements Dialect {
public String getConnectionInitStatement ( String schema ) {
if ( StringUtils . isNotBlank ( schema ) ) {
- return STRING0 + schema ;
+ return STRING1 + schema + STRING2 ;
}
return null ;
}
<nb> public class OracleTest {
public void shouldChangeOracleSch... | Escape the value of sonar jdbc schema on Oracle |
<nb> public class GenericLocation {
}
COMMENT
+ COMMENT
+ COMMENT
+ public GenericLocation ( Coordinate coord ) {
+ this ( coord . y , coord . x ) ;
+ }
+
+ COMMENT
COMMENT
COMMENT
public GenericLocation ( double lat , double lng , double heading ) {
<nb> public class GenericLocationTest {
... | Add constructor GenericLocation Coordinate |
<nb> public abstract class HardwareRenderer {
}
if ( ( status & DisplayList . STATUS_INVOKE ) != NUMBER0 ) {
- scheduleFunctors ( attachInfo ) ;
+ scheduleFunctors ( attachInfo , true ) ;
}
}
- private void scheduleFunctors ( View . AttachInfo attachInfo ) {
+ private void scheduleFunctors ( View . ... | Fix attachFunctor path to ignore delay |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
- import NAMESPACE ;
- import NAMESPACE ;
- import NAMESPACE ;
- import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> public class ExecutionBacking {
}
public v... | Throw an explicit exception if an async op is attempted on an execution when it s done in cleanup |
<nb> public class HelloWorldHttp2Handler extends ChannelDuplexHandler {
throws Exception {
if ( headers . isEndStream ( ) ) {
ByteBuf content = ctx . alloc ( ) . buffer ( ) ;
- content . writeBytes ( RESPONSE_BYTES ) ;
+ content . writeBytes ( RESPONSE_BYTES . duplicate ( ) ) ;
ByteBufUtil . writeAscii ( co... | Fix IndexOutOfBoundsException in HelloWorldHttp2Handler |
<nb> public class IoUtil
COMMENT
public static void unmap ( final MappedByteBuffer buffer )
{
+ if ( buffer == null )
+ {
+ return ;
+ }
+
try
{
final Method method = FileChannelImpl . class . getDeclaredMethod ( STRING0 , MappedByteBuffer . class ) ;
<nb> public class ConductorBuffers extends E... | fix missing cleanup |
<nb> import static NAMESPACE ;
import static NAMESPACE ;
import static NAMESPACE ;
import static NAMESPACE ;
- import static NAMESPACE ;
import static NAMESPACE ;
import static NAMESPACE ;
import static NAMESPACE ;
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ... | Fix wrong import |
<nb> public class ImageDecodingInfo {
return imageUri ;
}
+ COMMENT
+ public String getOriginalImageUri ( ) {
+ return originalImageUri ;
+ }
+
COMMENT
COMMENT
COMMENT | add function to retrieve original uri |
<nb> class Main implements ActionListener {
}
private void createAndShowGUI ( ) {
- JFrame frame = new JFrame ( STRING0 ) ;
+ JFrame frame = new JFrame ( STRING1 + JLanguageTool . VERSION + STRING2 ) ;
frame . setDefaultCloseOperation ( JFrame . EXIT_ON_CLOSE ) ;
textArea = new JTextArea ( STRING3 + | improve window title |
<nb> public class ServerPluginRepository implements PluginRepository , Startable {
private void logInstalledPlugins ( ) {
List < PluginInfo > orderedPlugins = Ordering . natural ( ) . sortedCopy ( pluginInfosByKeys . values ( ) ) ;
for ( PluginInfo plugin : orderedPlugins ) {
- LOG . info ( STRING0 , SLASH_JOIN... | Revert server log on installed plugins |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> public class MainActivity extends AppCompatActivity {
final float scaleFactor = DefaultBlurController . DEFAULT_SCALE_FACTOR ;
final View decorView = get... | Comments added to example project |
<nb> public class FileUtilRt {
} ) ;
initSuccess = true ;
- LOG . info ( STRING0 ) ;
}
catch ( Throwable ignored ) {
LOG . info ( STRING1 ) ; | remove excessive logging |
<nb> public class ChatPanel
( ( ChatRoomWrapper ) chatSession . getDescriptor ( ) )
. getChatRoom ( ) . removeMemberPropertyChangeListener ( this ) ;
}
+
+ if ( subjectPanel != null )
+ subjectPanel . dispose ( ) ;
}
COMMENT
<nb> public class ChatRoomSubjectPanel
configButton . setIcon ( new Image... | Removes listener in chat room subject panel |
<nb> public class OkTest {
String expectedClassPathString = System . getProperty ( STRING0 ) ;
if ( isJava9 ) {
String [ ] splittedClasspath = splitClasspath ( classPathString ) ;
- String [ ] classpathWithoutWorkerJar = Arrays . copyOfRange ( splittedClasspath , NUMBER0 , splittedClasspath . length ) ; SINGLE ... | Assert classpath for JUnit test contains gradle worker |
<nb> public abstract class KotlinBuiltIns {
@ notnull
public ClassDescriptor getBuiltInClassByName ( @ notnull Name simpleName ) {
ClassDescriptor classDescriptor = getBuiltInClassByNameNullable ( simpleName ) ;
- assert classDescriptor != null : STRING0 + simpleName + STRING1 ;
+ assert classDescriptor != nu... | Minor improve assertion message |
<nb> public class BasicPipelineConfigs extends BaseCollection < PipelineConfig > impleme
@ override
public String getGroup ( ) {
- return sanitizedGroupName ( group ) ;
+ return group ;
}
@ override | don t sanitize pipeline group name in getGroup |
<nb> final class SpanGroup implements DataPoints {
: spans . get ( i ) . downsampler ( sample_interval , downsampler ) ) ;
iterators [ i ] = it ;
it . seek ( start_time ) ;
- if ( ! it . hasNext ( ) ) {
+ final DataPoint dp ;
+ try {
+ dp = it . next ( ) ;
+ } catch ( NoSuchElementException e ) {
thro... | Remove an unnecessary call to hasNext |
<nb> public class XmlStringBuilder implements Appendable , CharSequence {
@ override
public boolean equals ( Object other ) {
- if ( ! ( other instanceof XmlStringBuilder ) ) {
+ if ( ! ( other instanceof CharSequence ) ) {
return false ;
}
- XmlStringBuilder otherXmlStringBuilder = ( XmlStringBuilder )... | Make XmlStringBuilder equals CharSequence aware |
<nb> import NAMESPACE ;
@ stateful
public class SFSB1 {
@ persistencecontext ( unitName = STRING0 )
- EntityManager em ;
+ EntityManager em ;
public void createEmployee ( String name , String address , int id ) {
Employee emp = new Employee ( ) ;
<nb> public class SFSB1 {
emp . setAddress ( address ... | Fix test when running with JTS |
<nb> public class GithubRebaseAction extends DumbAwareAction {
SINGLE
final Ref < String > remoteForForkParentRepo = new Ref < String > ( ) ;
for ( GitRemote gitRemote : gitRepository . getRemotes ( ) ) {
- final String fetchUrl = gitRemote . getFetchRefSpec ( ) ;
- if ( fetchUrl . endsWith ( parent + STRING0... | Fix GithubRebase action to use new Git API |
<nb> public class SalesforceComponent extends UriEndpointComponent implements Endpoin
httpClient . stop ( ) ;
}
}
+
+ if ( classMap != null ) {
+ classMap . clear ( ) ;
+ }
}
public SubscriptionHelper getSubscriptionHelper ( ) throws Exception { | camel salesforce should clear internal cached class map when stopping |
<nb> public abstract class WizardPopup extends AbstractPopup implements ActionListene
ScreenUtil . moveRectangleToFitTheScreen ( targetBounds ) ;
if ( getParent ( ) != null ) {
- if ( getParent ( ) . getBounds ( ) . intersects ( targetBounds ) ) {
+ final Rectangle parentBounds = getParent ( ) . getBounds ( )... | wizard popup substeps wrong positioning fixed |
<nb> import NAMESPACE ;
COMMENT
COMMENT
public class SettingsBackupAgent extends BackupHelperAgent {
- SINGLE
private static final boolean DEBUG = false ;
private static final String KEY_SYSTEM = STRING0 ;
<nb> import NAMESPACE ;
class BackupManagerService extends IBackupManager . Stub {
private s... | Turn off the last of the STOPSHIP verbose debugging |
<nb> package NAMESPACE ;
COMMENT
COMMENT
COMMENT
- COMMENT
+ COMMENT
COMMENT
COMMENT
COMMENT | Fixed small indentation typo |
<nb> public class UnpooledDataSourceTest {
Enumeration < Driver > drivers = DriverManager . getDrivers ( ) ;
int count = NUMBER0 ;
while ( drivers . hasMoreElements ( ) ) {
- Driver driver = drivers . nextElement ( ) ;
- System . out . println ( driver . getClass ( ) . getName ( ) ) ;
+ drivers . nextElemen... | Removing prints to console in tests |
<nb> public class HttpQueryClient
public void cancelLeafStage ( )
{
QueryInfo queryInfo = getQueryInfo ( false ) ;
- cancelLeafStage ( queryInfo . getOutputStage ( ) ) ;
+ if ( queryInfo != null ) {
+ cancelLeafStage ( queryInfo . getOutputStage ( ) ) ;
+ }
}
private boolean cancelLeafStage ( StageI... | Fix NPE when canceling already canceled queries |
<nb>
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
package NAMESPACE ;
class StringOpassign { | Fix test data once again |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ import static NAMESPACE ;
+
COMMENT
COMMENT
COMMENT
<nb> public final class Client... | Fixed the stacktrace in case of a remote exception being thrown while authenticating |
<nb> public class DeepLearningModel extends SupervisedModel < DeepLearningModel , DeepLea
( ! get_params ( ) . _autoencoder ? ( STRING0 + _train . lastVecName ( ) + STRING1 ) : STRING2 ) +
( get_params ( ) . _autoencoder ? STRING3 :
_classification ? ( units [ units . length - NUMBER0 ] + STRING4 ) : STRING5 )
... | Show the DL model size in the model summary |
<nb> public class CordovaWebViewClient extends WebViewClient {
CordovaInterface cordova ;
CordovaWebView appView ;
private boolean doClearHistory = false ;
- private boolean isCurrentlyLoading ;
+ boolean isCurrentlyLoading ;
COMMENT
private Hashtable < String , AuthenticationToken > authenticationToken... | Fix broken build from prev |
<nb> public class TransformState {
mTransformedView . setVisibility ( visible ? View . VISIBLE : View . INVISIBLE ) ;
mTransformedView . setAlpha ( visible ? FLOAT0 : FLOAT1 ) ;
if ( visible ) {
- mTransformedView . setTranslationX ( NUMBER0 ) ;
- mTransformedView . setTranslationY ( NUMBER0 ) ;
- mTransfor... | Fixed a transformation error when fading in views |
<nb> public class OHazelcastDistributedDatabase implements ODistributedDatabase {
groupByResponse ) ;
if ( ODistributedServerLog . isDebugEnabled ( ) )
- ODistributedServerLog . debug ( this , getLocalNodeName ( ) , iNodes . toString ( ) , DIRECTION . OUT , STRING0 ,
- iRequest . getTask ( ) ) ;
+ ODistribu... | logged request instead of task as suggested by Rob |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> public class Modifications extends BaseCollection < Modification > {
LOG . debug ( STRING0 + CollectionUtils . subtract ( allFiles , ignoredFiles ) + STRING1... | changed return of Modifications shouldBeIgnoredByFilterIn to check for disjoint sets when invertFilter is used |
<nb>
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+
package NAMESPACE ;
import NAMESPACE ;
- public class DistributionPatternProvider {
+ public final class DistributionPatternProvide... | Added missing Stratosphere header |
<nb> public class IssueTrackingDecorator implements Decorator {
return referenceIssuesMap ;
}
- private void mapLastIssues ( List < DefaultIssue > newIssues , @ nullable Collection < IssueDto > lastIssues , Multimap < Integer , IssueDto > lastIssuesByRule ) {
+ private void mapLastIssues ( List < DefaultIssue... | Fix quality flaw |
<nb> public final class BluetoothAdapter {
COMMENT
public boolean setScanMode ( int mode ) {
if ( getState ( ) != STATE_ON ) return false ;
- return setScanMode ( mode , NUMBER0 ) ;
+ COMMENT
+ return setScanMode ( mode , getDiscoverableTimeout ( ) ) ;
}
COMMENT | Fix discoverability timeout issues |
<nb> public class XmppConnection implements Runnable {
final Pair < IqPacket , OnIqPacketReceived > packetCallbackDuple = packetCallbacks . get ( packet . getId ( ) ) ;
SINGLE
if ( packetCallbackDuple . first . toServer ( account ) ) {
- if ( packet . fromServer ( account ) ) {
+ if ( packet . fromServer ( ac... | ignore spoofed stanzas in facebook chat |
<nb> import NAMESPACE ;
import NAMESPACE ;
public interface PyFile extends PyElement , PsiFile , PyDocStringOwner , ScopeOwner , NameDefiner {
-
- Key < Boolean > KEY_EXCLUDE_BUILTINS = Key . create ( STRING0 ) ;
-
List < PyStatement > getStatements ( ) ;
List < PyClass > getTopLevelClasses ( ) ;
<n... | drop key which isn t used anywhere |
<nb> public class TestNGTestClassProcessor implements TestClassProcessor {
testNg . setOutputDirectory ( testReportDir . getAbsolutePath ( ) ) ;
testNg . setDefaultSuiteName ( options . getSuiteName ( ) ) ;
testNg . setDefaultTestName ( options . getTestName ( ) ) ;
+ testNg . setParallel ( options . getParalle... | TestNGOptions parallel and TestNGOptions threadCount have no effect |
<nb> public class LocalOutgoingServerProxy implements RoutableChannelHandler {
log . debug ( STRING0 , domain . toString ( ) ) ;
int sent = NUMBER0 ;
this . session = session ;
- while ( ! this . packets . isEmpty ( ) ) {
+ while ( this . packets != null && ! this . packets . isEmpty ( ) ) {
Packet packet =... | Fix NPE when no packets were queued before start or fail of new session |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.