diff stringlengths 38 1.78k | msg_token stringlengths 9 190 |
|---|---|
<nb> public class ActiveSession extends JavaScriptObject
public native final String getRVersionHome ( ) COMMENT
COMMENT
COMMENT ;
-
-
} | remove whitespace from ActiveSession |
<nb> public class PropertiesComponent extends UriEndpointComponent {
COMMENT
COMMENT
public void setLocation ( String location ) {
- setLocations ( location . split ( STRING0 ) ) ;
+ if ( location != null ) {
+ setLocations ( location . split ( STRING0 ) ) ;
+ }
}
public String getEncoding ( ) { | Fixed potential NPE |
<nb> public class DirectionDrawable extends Drawable {
@ override
public void draw ( Canvas canvas ) {
-
if ( favorite ) {
canvas . rotate ( angle , canvas . getHeight ( ) / NUMBER0 , canvas . getWidth ( ) / NUMBER0 ) ;
Bitmap arrow = BitmapFactory . decodeResource ( ctx . getResources ( ) , R . drawable ... | Fixed directon drawable for poi |
<nb>
COMMENT
- COMMENT
+ COMMENT
COMMENT
COMMENT
COMMENT
<nb>
package NAMESPACE ;
import NAMESPACE ;
-
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> public abstract class AbstractRefreshableConfigApplicationContext extends Abstra
COMMENT
COMMENT
- COMMENT
+ COMMEN... | Updated resolvePath javadoc to reflect Environment based placeholder resolution |
<nb> public class PutAllBackupOperation extends MapOperation implements PartitionAwar
this . recordInfos = recordInfos ;
}
- @ suppresswarnings ( STRING0 )
public PutAllBackupOperation ( ) {
}
<nb> public class PutAllOperation extends MapOperation implements PartitionAwareOpera
private List < RecordIn... | Removed superfluous SuppressWarnings unused from PutAllOperation and PutAllBackupOperation |
<nb> public class TestParser extends TomcatBaseTest {
String result = res . toString ( ) ;
- System . out . println ( result ) ;
Assert . assertTrue ( result . contains ( STRING0 ) ||
result . contains ( STRING1 ) ) ;
Assert . assertTrue ( result . contains ( STRING2 ) || | Remove some debug code |
<nb> public class PhoneStatusBar extends BaseStatusBar {
int mNotificationPanelMarginBottomPx , mNotificationPanelMarginLeftPx ;
int mNotificationPanelGravity ;
int mNotificationPanelMinHeight ;
+ boolean mNotificationPanelIsFullScreenWidth ;
SINGLE
View mClearButton ;
<nb> public class PhoneStatusBar e... | Remove an unnecessary animation |
<nb> import NAMESPACE ;
COMMENT
COMMENT
COMMENT
- COMMENT
+ COMMENT
COMMENT
COMMENT
COMMENT
COMMENT
+ COMMENT
+ COMMENT
COMMENT
+ @ deprecated
public interface AutoIndexer < T extends PropertyContainer >
{
COMMENT
<nb> public interface AutoIndexer < T extends PropertyContainer >
COMM... | Deprecate auto indexing API |
<nb> public interface SqlSession {
COMMENT
COMMENT
COMMENT
+ COMMENT
COMMENT
- public List < BatchResult > flushStatements ( ) ;
+ List < BatchResult > flushStatements ( ) ;
COMMENT
COMMENT | added since to flushStatements and removed uneeded public |
<nb> class CallbackProxy extends Handler {
SINGLE
SINGLE
- private class ResultTransport < E > {
+ private static class ResultTransport < E > {
SINGLE
private E mResult ;
<nb> public final class WebIconDatabase {
private final EventHandler mEventHandler = new EventHandler ( ) ;
SINGLE
- privat... | make private inner classes static |
<nb> public class JetPsiUtil {
return ( elseCount == NUMBER0 ) ;
}
+ public static JetExpression getWhenElseBranch ( @ notnull JetWhenExpression whenExpression ) {
+ for ( JetWhenEntry entry : whenExpression . getEntries ( ) ) {
+ if ( entry . isElse ( ) ) {
+ return entry . getExpression ( ) ;
+ }
+ ... | Add extraction of else branch of when expression |
<nb> public class SplashScreen extends JFrame implements Runnable {
this . pack ( ) ;
this . setVisible ( true ) ;
- Logger . getRootLogger ( ) . addAppender ( new SplashOutputWriter ( ) ) ;
+ SplashOutputWriter splashOutputWriter = new SplashOutputWriter ( ) ;
+ Logger . getRootLogger ( ) . addAppender ( s... | Fix SplashScreen memory leak |
<nb> public class NetworkImageView extends ImageView {
mImageContainer . cancelRequest ( ) ;
mImageContainer = null ;
}
- setImageBitmap ( null ) ;
+ setDefaultImageOrNull ( ) ;
return ;
}
<nb> public class NetworkImageView extends ImageView {
} else {
SINGLE
mImageContainer . cancelRequest ( ) ... | Fix default image not displaying prior to load |
<nb> public class TextView extends View implements ViewTreeObserver . OnPreDrawListener
int start = end ;
for ( ; start > NUMBER0 ; start -- ) {
+ if ( start == end ) {
+ SINGLE
+ SINGLE
+ final char c = mTransformed . charAt ( start ) ;
+ final int type = Character . getType ( c ) ;
+ if ( type == Ch... | Selecting text from a punctuation sign selects previous word |
<nb> public class FindReplace
editor_ . fitSelectionToLines ( true ) ;
Position start = editor_ . getSelectionStart ( ) ;
Position end = editor_ . getSelectionEnd ( ) ;
- if ( end . getRow ( ) < editor_ . getRowCount ( ) )
- end = Position . create ( end . getRow ( ) + NUMBER0 , NUMBER1 ) ;
-
- SINGLE
a... | don t manipulate selection before find in selection |
<nb> public class JetAnnotationEntry extends JetElementImplStub < KotlinAnnotationEntry
JetAnnotationUseSiteTarget target = getStubOrPsiChild ( JetStubElementTypes . ANNOTATION_TARGET ) ;
if ( target == null ) {
- PsiElement parent = getStubOrPsiParent ( ) ;
+ PsiElement parent = getParentByStub ( ) ;
if ( ... | Don t use StubBasedPsiElementBase getStubOrPsiParent |
<nb> private NetworkStateTracker makeWimaxStateTracker ( ) {
mNetd . removeRoute ( ifaceName , r ) ;
} catch ( Exception e ) {
SINGLE
- if ( DBG ) loge ( STRING0 + e ) ;
+ if ( VDBG ) loge ( STRING0 + e ) ;
return false ;
}
} else {
<nb> private NetworkStateTracker makeWimaxStateTracker ( ) {
mNetd ... | Stop complaining about failure to remove routes |
<nb> public class ConcurrentEngineUsageTest extends PluggableActivitiTestCase {
SINGLE
executor . shutdown ( ) ;
- executor . awaitTermination ( NUMBER0 , TimeUnit . MILLISECONDS ) ;
+ boolean isEnded = executor . awaitTermination ( NUMBER0 , TimeUnit . MILLISECONDS ) ;
+ if ( ! isEnded ) {
+ log . error ... | Forcing termination of pool when timeout is reached in concurrency test |
<nb> public class SampleTomcatTwoConnectorsApplication {
@ bean
public EmbeddedServletContainerFactory servletContainer ( ) {
TomcatEmbeddedServletContainerFactory tomcat = new TomcatEmbeddedServletContainerFactory ( ) ;
- tomcat . addAdditionalTomcatConnectors ( createSslConnector ( ) ) ;
+ tomcat . addAddit... | Rename method to clarify which connector is being created |
<nb> public class DefaultScriptHandlerTest {
@ test public void testLoadFromCacheWithStaleCache ( ) {
scriptHandler . writeToCache ( testScript , classLoader , TEST_SCRIPT_NAME , scriptCacheDir , expectedScriptClass ) ;
scriptCacheDir . setLastModified ( NUMBER0 ) ;
+ assertTrue ( scriptCacheDir . lastModified ... | check our assumptions about the cache before making assertions |
<nb> public class GoSdkUtil {
if ( path . isEmpty ( ) ) {
return null ;
}
+ path = FileUtil . toSystemIndependentName ( path ) ;
for ( VirtualFile root : getSourcesPathsToLookup ( project , module ) ) {
VirtualFile file = root . findFileByRelativePath ( path ) ;
if ( file != null ) { | Find subdirectories of libraries by system independent paths |
<nb> import NAMESPACE ;
COMMENT
COMMENT
@ suppresswarnings ( { STRING0 , STRING1 } )
- public class CrashReportDialog extends BaseCrashReportDialog implements DialogInterface . OnClickListener , DialogInterface . OnDismissListener {
+ public class CrashReportDialog extends BaseCrashReportDialog implements Dia... | Removed unnecessary Activity finish when dialog is dismissed that was causing a duplicate finish error to be logged |
<nb> public class CommonActionsPanel extends JPanel {
if ( buttonComparator != null ) {
Arrays . sort ( myActions , buttonComparator ) ;
}
- myDecorateButtons = SystemInfo . isMac && position == ActionToolbarPosition . BOTTOM ;
+ myDecorateButtons = UIUtil . isUnderAquaLookAndFeel ( ) && position == ActionToo... | don t paint mac bg with Darcula switched on |
<nb> public class TheTVDB {
new String [ ] {
Shows . _ID , Shows . LASTUPDATED
} , null , null , null ) ;
-
+ boolean update = false ;
if ( show != null ) {
if ( show . moveToFirst ( ) ) {
long lastUpdateTime = show . getLong ( NUMBER0 ) ;
if ( currentTime - lastUpdateTime > DateUtils . HOUR_IN_MILLIS... | Fix Cursor leak |
<nb> public final class Array < T > implements IndexedSeq < T > , Serializable {
public static < T > Array < T > tabulate ( int n , Function < ? super Integer , ? extends T > f ) {
Objects . requireNonNull ( f , STRING0 ) ;
int nOrZero = java . lang . Math . max ( n , NUMBER0 ) ;
- @ suppresswarnings ( STRING1 ... | Remove useless cast in Array tabulate |
<nb> public class MapActivity extends OsmandActionBarActivity implements DownloadEven
FirstUsageWelcomeFragment . SHOW = false ;
getSupportFragmentManager ( ) . beginTransaction ( )
. add ( R . id . fragmentContainer , new FirstUsageWelcomeFragment ( ) ,
- FirstUsageWelcomeFragment . TAG ) . commit ( ) ;
+ Fi... | Fix state loss |
<nb> import NAMESPACE ;
public class NoConflictChange extends TwoSideChange . SideChange < MergeNoConflict > {
private static final Logger LOG = Logger . getInstance ( NoConflictChange . class ) ;
+ private boolean myApplied ;
+
public NoConflictChange ( @ notnull MergeNoConflict twoSideChange ,
@ notnull... | do not apply single change multiple times |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> public class GroovyCompletionContributor extends CompletionContributor {
Set < PsiClass > us... | Remove already used named arguments |
<nb>
package NAMESPACE ;
- import NAMESPACE ;
- import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
- import NAMESPACE ;
- import NAMESPACE ;
COMMENT
COMMENT
<nb> public class RepeatedRaptorProfileRou... | set confidencecalcmethod for nontransit searches |
<nb> public abstract class SocketWrapperBase < E > {
return hasMoreDataToFlush ( ) || bufferedWrites . size ( ) > NUMBER0 ;
}
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
public boolean isR... | Add a warning based on what appears to have been the fix for an APR crash after the recent refactoring |
<nb> public class SessionManager extends BasicModule {
COMMENT
COMMENT
public ClientSession getSession ( JID from ) {
- SINGLE
- if ( from == null || ! serverName . equals ( from . getDomain ( ) ) ) {
+ SINGLE
+ SINGLE
+ if ( from == null || serverName == null || ! serverName . equals ( from . getDomain... | Fixed NPE when stopping the server while users are connected |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
- import NAMESPACE ;
+ SINGLE
public class Editor extends JFrame | remove jalopy import line |
<nb> public class AudioVideoNotesPlugin extends OsmandPlugin {
public synchronized void shootAgain ( ) {
cancelPhotoTimer ( ) ;
+ cam . cancelAutoFocus ( ) ;
photoRawData = null ;
- cam . startPreview ( ) ;
- internalShoot ( ) ;
+ try {
+ cam . stopPreview ( ) ;
+ cam . startPreview ( ) ;
+ inte... | Fix photo reshoot |
<nb> import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> public class SimpleCrypto {
return new String ( result ) ;
}
- private static SecretKey getKey ( Context context ) throws Exception {
+ private static SecretKey getKey ( Context context )... | Only throw NoSuchAlgorithmException for getKey |
<nb>
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
package NAMESPACE ;
import NAMESPACE ; | Add standard Atmosphere license header |
<nb> public class NetworkEventReporterImpl implements NetworkEventReporter {
private static JSONObject formatHeadersAsJSON ( InspectorHeaders headers ) {
JSONObject json = new JSONObject ( ) ;
for ( int i = NUMBER0 ; i < headers . headerCount ( ) ; i ++ ) {
+ String name = headers . headerName ( i ) ;
+ Strin... | Properly encode multiple headers with the same name |
<nb> public final class PyToxConfigurationProducer extends RunConfigurationProducer < P
if ( virtualFile == null ) {
return false ;
}
+ final String currentPath = virtualFile . getParent ( ) . getCanonicalPath ( ) ;
+ final String directoryPath = configuration . getWorkingDirectory ( ) ;
+
+ if ( currentP... | Providing correct folder for configuration |
<nb> public class GocheckFramework extends GoTestFramework {
for ( GoFile file : StubIndex . getElements ( GoPackagesIndex . KEY , STRING0 , module . getProject ( ) , GoUtil . moduleScope ( module ) , GoFile . class ) ) {
String importPath = file . getImportPath ( ) ;
if ( importPath != null ) {
- return GO_CHE... | Check all files for defining availability of gocheck framework |
<nb> public class RuntimeJavaCompiler {
private File file ;
protected JavaClassFromFile ( File file ) {
- super ( URI . create ( STRING0 + file . toString ( ) ) , Kind . CLASS ) ;
+ super ( file . toURI ( ) , Kind . CLASS ) ;
this . file = file ;
} | create URIs directly from the file objects |
<nb> public class ConnectorManager
@ predestroy
public void stop ( )
{
- if ( stopped . compareAndSet ( false , true ) ) {
+ if ( stopped . getAndSet ( true ) ) {
return ;
} | Fix connector shutdown |
<nb> public class InternalEngine extends Engine {
}
}
} catch ( FileNotFoundException ex ) {
- logger . info ( STRING0 + translogId ) ;
+ logger . debug ( STRING0 + translogId ) ;
} catch ( TruncatedTranslogException e ) {
SINGLE
logger . trace ( STRING1 , e ) ; | Use debug logging if no translog file is found |
<nb> public interface StorageServiceMBean
COMMENT
COMMENT
public int getCurrentGenerationNumber ( ) ;
+
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ public List < InetAddress > getNaturalEndpoints ( String key ) ;
COMMENT
COMMENT
<nb> import NAMESPACE ;
impor... | add new getEndPoints method |
<nb> public class EditorMarkupModelImpl extends MarkupModelImpl implements EditorMark
@ notnull
@ override
public Dimension getPreferredSize ( ) {
- int width = myEditor . getGutterComponentEx ( ) . getWidth ( ) + myEditor . getScrollingModel ( ) . getVisibleArea ( ) . width ;
+ int width = myEditor . getGutt... | fixed incorrect lens position |
<nb> public class HiveConnection implements java . sql . Connection {
@ override
public void setReadOnly ( boolean readOnly ) throws SQLException {
- SINGLE
- throw new SQLException ( STRING0 ) ;
+ SINGLE
+ if ( isClosed ) {
+ throw new SQLException ( STRING1 ) ;
+ }
+ SINGLE
+ SINGLE
+ SINGLE
... | Make Connections setReadOnly method compliant Michal Wegrzyn via Sergey Shelukhin |
<nb> public class RenderFontJme implements RenderFont {
public RenderFontJme ( String name , NiftyJmeDisplay display ) {
this . display = display ;
font = display . getAssetManager ( ) . loadFont ( name ) ;
+ if ( font == null ) {
+ throw new RuntimeException ( STRING0 + name ) ;
+ }
text = new BitmapText... | Throw a more meaningful exception for a missing font |
<nb> public class TypeInferencer implements Visitor1 < Type , State > {
if ( ltype instanceof InstanceType ) {
Type opType = ltype . table . lookupAttrType ( STRING0 ) ;
if ( opType instanceof FunType ) {
+ ( ( FunType ) opType ) . setSelfType ( ltype ) ;
return apply ( ( FunType ) opType , Collections . sing... | set self type |
<nb> import NAMESPACE ;
)
public class BundleExtractCommand extends SingleFileCommand {
+ private static final Logger L = LogUtils . getLogger ( ) ;
+
@ parameter (
names = { STRING0 , STRING1 } ,
description = STRING2 ,
<nb> public class BundleExtractCommand extends SingleFileCommand {
)
private ... | Moved logger field up |
<nb> public class BlockChain {
COMMENT
public BlockChain ( NetworkParameters params , Wallet wallet , BlockStore blockStore ) {
this ( params , new ArrayList < Wallet > ( ) , blockStore ) ;
- addWallet ( wallet ) ;
+ if ( wallet != null )
+ addWallet ( wallet ) ;
+ }
+
+ COMMENT
+ COMMENT
+ COMMEN... | Add a constructor that allows wallet less operation now possible due to the previous patch to support multiple wallets |
<nb> public class DefaultUrlMappingInfo implements UrlMappingInfo {
public String getActionName ( ) {
GrailsWebRequest webRequest = ( GrailsWebRequest ) RequestContextHolder . getRequestAttributes ( ) ;
- String name = evaluateNameForValue ( this . actionName ) ;
+ String name = webRequest != null ? checkDi... | temporarily rollback previous change pending further investigation |
<nb> public class GoogleUserCredentialProvider extends CredentialProvider {
throws LoginFailedException , RemoteServerException {
this . time = time ;
this . client = client ;
-
- authbuilder = AuthInfo . newBuilder ( ) ;
}
COMMENT
<nb> public class GoogleUserCredentialProvider extends CredentialProvi... | Defer building AuthInfo to after a refresh token is obtained |
<nb> public class ByteBuddyAgent {
return instrumentation ;
}
} catch ( Exception ignored ) {
- try {
- doInstall ( ) ;
- } catch ( Exception e ) {
- throw new IllegalStateException ( STRING0 +
- STRING1 , e ) ;
- }
+ COMMENT
+ }
+ try {
+ doInstall ( ) ;
+ } catch ( Exception e ) {
+ thro... | Removed false check on installation |
<nb> public final class TwitterStreamFactory implements java . io . Serializable {
COMMENT
COMMENT
COMMENT
+ COMMENT
COMMENT
public TwitterStreamFactory ( String configTreePath , StatusListener listener ) {
this ( ConfigurationContext . getInstance ( configTreePath ) , listener ) ; | Fix missing param doc |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> public class StatsActivity extends WPActionBarActivity {
public void onCreate ( Bundle savedInstanceState ) {
super . onCreate ( savedIn... | Adding WPStats tracking for stats |
<nb>
COMMENT
package NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> public class AtDXmlSerializer {
public String ruleMatchesToXml ( List < RuleMatch > matches , String text ) {
StringBuilder sb = new StringBuilder ( ) ;
sb . append ( STRING0 ) ;
+ sb . append ( STRI... | add LT version and build date to output as a comment |
<nb> public class DefaultBroadcasterFactory extends BroadcasterFactory {
}
Broadcaster existingOne = store . putIfAbsent ( id , createBroadcaster ( c , id ) ) ;
- if ( existingOne == null ) {
+ if ( existingOne != null ) {
logger . debug ( STRING0 , id , store . size ( ) ) ;
} else {
logger . warn ( STR... | Fix wrong logic |
<nb> import NAMESPACE ;
COMMENT
COMMENT
COMMENT
+ COMMENT
+ COMMENT
COMMENT
COMMENT
COMMENT | Adding video link |
<nb> public class ContinuousJob extends LifecycleAdapter
{
log . info ( STRING0 + group . name ( ) + STRING1 ) ;
abortableJob . keepRunning = false ;
+ jobHandle . cancel ( true ) ;
jobHandle . waitTermination ( ) ;
} | Cancel job if we re shutting down |
<nb> public class Table implements TableOrView , TableSchema {
SINGLE
SINGLE
-
+ @ override
public TableQuery where ( ) {
return new TableQuery ( nativeWhere ( nativePtr ) , immutable ) ;
}
<nb> public interface TableOrView {
String toString ( long maxRows ) ;
String rowToString ( long rowIndex ... | Added where to TableOrView interface and updated testcase |
<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 class TestEncodingDecoding extends TomcatBaseTest {
public stati... | Observed strange lock up on OSX when two threads were writing concurrently to this Map |
<nb> public class HelloWorldJavaTest {
@ test
public void greeting ( ) {
- assertEquals ( STRING0 , org . jetbrains . namespace . getGreeting ( ) ) ;
+ assertEquals ( STRING0 , org . jetbrains . JetbrainsPackage . getGreeting ( ) ) ;
}
} | Fix kotlin maven plugin compilation |
<nb> public class OperationSetBasicTelephonySipImpl
{
Transaction transaction ;
if ( timeoutEvent . isServerTransaction ( ) ) {
- transaction = timeoutEvent . getServerTransaction ( ) ;
+ SINGLE
+ return ;
}
else {
transaction = timeoutEvent . getClientTransaction ( ) ; | don t kill call on transaction timeout |
<nb> public abstract class AbstractPatternRule extends Rule {
}
@ override
- public final String toString ( ) {
+ public String toString ( ) {
return id + STRING0 + patternElements + STRING0 + description ;
}
<nb> public class PatternRule extends AbstractPatternRule {
return suggestionMatches ;
} ... | implement a better toString for PatternRule that includes the sub id of the rule |
<nb> public class XML implements Serializable {
COMMENT
COMMENT
COMMENT
- COMMENT
COMMENT
COMMENT
public double getDouble ( String name , double defaultValue ) {
<nb> public class XML implements Serializable {
COMMENT
COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
COMMENT
+ COMMENT
+ COMMENT
... | Added XML reference for format and toString |
<nb> public class GameData {
Loader . instance ( ) . fireRemapEvent ( remaps ) ;
SINGLE
ObjectHolderRegistry . INSTANCE . applyObjectHolders ( ) ;
-
- SINGLE
- GameData . BLOCKSTATE_TO_ID . clear ( ) ;
- for ( Block block : getMain ( ) . iBlockRegistry . typeSafeIterable ( ) )
- {
- int id = getMain (... | Removed unneeded rebuild was toying with where to put it |
<nb> public class NioServletInputStream extends AbstractServletInputStream {
SINGLE
if ( nRead > NUMBER0 ) {
readBuffer . flip ( ) ;
- readBuffer . limit ( nRead ) ;
if ( nRead > leftToWrite ) {
readBuffer . get ( b , newOffset , leftToWrite ) ;
leftToWrite = NUMBER0 ; | Remove unnecessary code |
<nb> public class PathManager {
}
public String getAndroidEmulatorRoot ( ) {
- String androidEmulatorRoot = tmpFolder + STRING0 ;
+ String androidEmulatorRoot = getAndroidSdkRoot ( ) + STRING0 ;
new File ( androidEmulatorRoot ) . mkdirs ( ) ;
return androidEmulatorRoot ;
} | create emulator files under project root not in tmp directory |
<nb> public class Editor extends JFrame {
String prompt = STRING0 + sketch . name + STRING1 ;
- COMMENT
if ( PApplet . platform != PConstants . MACOSX ) {
int result =
JOptionPane . showConfirmDialog ( this , prompt , STRING2 ,
<nb> public class Editor extends JFrame {
throw new IllegalStateException ... | returning editor to previous state after test |
<nb> public class WalletTest {
BigInteger v3 = toNanoCoins ( NUMBER0 , NUMBER1 ) ;
Transaction spend = wallet . createSend ( new ECKey ( ) . toAddress ( params ) , v3 ) ;
wallet . confirmSend ( spend ) ;
- assertEquals ( NUMBER0 , wallet . getPoolSize ( Wallet . Pool . UNSPENT ) ) ;
- assertEquals ( NUMBER0 ,... | Temporarily disable a couple of non deterministic tests |
<nb> public class VariableContext < T > {
Set < T > value ) {
ImmutableMap . Builder < String , Set < T > > newContextBuilder = ImmutableMap . builder ( ) ;
for ( Map . Entry < String , Set < T > > entry : variableContext . context . entrySet ( ) ) {
- if ( entry . getKey ( ) . equals ( name ) ) {
+ if ( ! en... | Fix embarassing typo in VariableContext with |
<nb> public abstract class Roles {
if ( roleId == null || ! idToRole . containsKey ( roleId ) ) {
return null ;
}
- return idToRole . get ( roleId ) . getName ( ) . toLowerCase ( ) ;
+ return idToRole . get ( roleId ) . getName ( ) ;
}
}
<nb> public abstract class Roles {
@ nullable
@ override
p... | do not return lowercase role names when mapping id or role to its name |
<nb> public class PrettyPrinter extends DefaultExecuteListener {
COMMENT
COMMENT
@ override
- public void executeStart ( ExecuteContext ctx ) {
+ public void renderEnd ( ExecuteContext ctx ) {
SINGLE
SINGLE | Let PrettyPrinter hook into renderEnd rather than executeStart |
<nb> abstract class PoolBase
connection . setReadOnly ( isReadOnly ) ;
connection . setAutoCommit ( isAutoCommit ) ;
- connection . setTransactionIsolation ( transactionIsolation ) ;
+
+ if ( transactionIsolation != - NUMBER0 ) {
+ connection . setTransactionIsolation ( transactionIsolation ) ;
+ }
+ ... | if user specified set transaction isolation level |
<nb> public abstract class ChangeSignatureDialogBase < P extends ParameterInfo , M exten
String message = validateAndCommitData ( ) ;
if ( message != null ) {
if ( message != EXIT_SILENTLY ) {
- CommonRefactoringUtil
- . showErrorMessage ( RefactoringBundle . message ( STRING0 ) , message , STRING1 ,
- myPr... | Create AS method UML action |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> public class Account implements BaseAccount
maximumAutoDownloadMessageSize = NUMBER0 ;
mQuotePrefix = DEFAULT_QUOTE_PREFIX ;
mSyncRemoteDeletions = true ... | set account setting crypto app to APG by default |
<nb> public class SweetAlertDialog extends Dialog implements View . OnClickListener {
}
protected void onStart ( ) {
+ getWindow ( ) . getDecorView ( ) . getBackground ( ) . setAlpha ( NUMBER0 ) ;
mDialogView . startAnimation ( mModalInAnim ) ;
playAnimation ( ) ;
} | fix the overlay effect problem on Android L |
<nb> public class AtmosphereResponse extends HttpServletResponseWrapper {
for ( Cookie c : cookies ) {
headers . put ( STRING0 , c . toString ( ) ) ;
}
- headerHandled = false ;
+ headerHandled = true ;
}
return headers ;
} | Fix trivial typo |
<nb> public class CreateFont extends JFrame implements Tool {
JButton okButton ;
JTextField filenameField ;
- Hashtable table ;
+ HashMap < String , Font > table ;
boolean smooth = true ;
boolean all = false ;
<nb> public class CreateFont extends JFrame implements Tool {
Font fonts [ ] = ge . getAll... | update syntax to use HashMap |
<nb> public class ErrorManager {
locationValid = true ;
}
- messageFormatST . add ( STRING0 , msg . errorType . ordinal ( ) ) ;
+ messageFormatST . add ( STRING0 , msg . errorType . code ) ;
messageFormatST . add ( STRING1 , messageST ) ;
if ( locationValid ) reportST . add ( STRING2 , locationST ) ; | Fix ErrorManager ignoring error code in messages |
<nb> public class VirtualMachineMetrics {
}
}
- public static VirtualMachineMetrics INSTANCE = new VirtualMachineMetrics ( ) ;
+ public static final VirtualMachineMetrics INSTANCE = new VirtualMachineMetrics ( ) ;
private VirtualMachineMetrics ( ) { COMMENT } | Fix VirtualMachineMetrics INSTANCE |
<nb> public class GlobalShortcutDialog
GlobalShortcutEntry en = entry ;
List < AWTKeyStroke > kss = new ArrayList < AWTKeyStroke > ( ) ;
- kss . add ( input ) ;
- kss . add ( en . getShortcut2 ( ) ) ;
+ if ( field == fldShortcut )
+ {
+ kss . add ( input ) ;
+ kss . add ( en . getShortcut2 ( ) ) ;
+... | Corrects the bug where the primary shortcut is overwritten by the secondary one |
<nb> package NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
public class ItemWrench extends ItemBuildCraft implements IToolWrench {
<nb> public class ItemWrench extends ItemBuildCraft implements IToolWrench {
@ override
public void wrenchUsed ( EntityPlayer... | Fix wrench to pass sneak clicks to blocks |
<nb> public interface RepositoryHandler extends ArtifactRepositoryContainer {
COMMENT
COMMENT
COMMENT
- COMMENT
+ COMMENT
COMMENT
COMMENT
COMMENT | Fixed javadoc reference to maven repo local system property |
<nb> public final class CursorAnchorInfo implements Parcelable {
COMMENT
COMMENT
COMMENT
- COMMENT
+ COMMENT
COMMENT
COMMENT
- public Builder setComposingText ( final int index , final CharSequence composingText ) {
- mComposingTextStart = index ;
+ public Builder setComposingText ( final int compos... | Use a bit more descriptive name for a parameter |
<nb> public class CodeFormatterFacade {
try {
ranges . preprocess ( file . getNode ( ) ) ;
FormattingModel originalModel = builder . createModel ( file , mySettings ) ;
- FormattingModelDumper . dumpFormattingModel ( originalModel . getRootBlock ( ) , NUMBER0 , System . out ) ;
- System . out . println ( STRI... | remove diagnostics sorry |
<nb> public abstract class ChangesBrowserBase < T > extends JPanel implements TypeSafeDa
treeActionsGroup . add ( action ) ;
}
- ActionToolbar toolbar = ActionManager . getInstance ( ) . createActionToolbar ( ActionPlaces . UNKNOWN , toolbarGroups , true ) ;
+ ActionToolbar toolbar = ActionManager . getInstan... | Removed show hide unversioned files action from popup in commit dialog |
<nb> public class CarrierConfigManager {
public static final String KEY_HIDE_IMS_APN_BOOL = STRING0 ;
COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ public static final String KEY_HIDE_PREFERRED_NETWORK_TYPE_BOOL = STRING1 ;
+
+ COMMENT
COMMENT
COMMENT
COMMENT
<nb> public class CarrierConfigManager {... | Add carrier config variable to hide preferred network type |
<nb> public interface TreeNode
COMMENT
COMMENT
TreeNode get ( int index ) ;
+
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ TreeNode path ( String fieldName ) ;
+
+ COMMENT
+ COMMENT
+ COMMENT
+ COMME... | Add path methods in TreeNode |
<nb> public class SerializerPojoTest {
- @ test public void java_serialization_writeReplace_in_object_graph ( ) throws IOException , ClassNotFoundException {
+ @ test ( expected = ClassCastException . class )
+ public void java_serialization_writeReplace_in_object_graph ( ) throws IOException , ClassNotFoun... | Fix previous test case |
<nb> class DayView extends CheckedTextView {
COMMENT
public void setSelectionDrawable ( Drawable selectionDrawable ) {
this . selectionDrawable = selectionDrawable ;
- invalidate ( ) ;
+ regenerateBackground ( ) ;
}
COMMENT | Fix typo for setting selection drawable |
<nb> package NAMESPACE ;
import NAMESPACE ;
- import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
- import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ; | Drop unused imports |
<nb> public class HttpToHttpsRedirectTest extends AbstractBasicTest {
assertEquals ( response . getStatusCode ( ) , NUMBER0 ) ;
assertEquals ( response . getHeader ( STRING0 ) , STRING1 ) ;
}
+
+ @ test ( groups = STRING2 )
+ public void relativeLocationUrl ( ) throws Throwable {
+ isSet . getAndSet ( fal... | Add a unit test for https to https redirect using relative location url |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> public class PlansActivity extends AppCompatActivity {
SINGLE
if ( mAvailablePlans == null ) {
+ if ( ! NetworkUtils . checkConnection ( this ) ) {
+... | Show no network available message in PlansActivity |
<nb> public interface Type < T > extends Expression < T > {
boolean isBuildable ( ) ;
COMMENT
+ COMMENT
COMMENT
COMMENT
COMMENT
< B > Supplier < B > builderFactory ( ) ;
COMMENT
+ COMMENT
COMMENT
COMMENT
COMMENT
<nb> public abstract class BasicType < T > extends BaseType < T > {
COMMENT ... | Fix javadoc warnings |
<nb> public class MemberSelectionPanel extends JPanel {
JScrollPane scrollPane = ScrollPaneFactory . createScrollPane ( myTable ) ;
add ( SeparatorFactory . createSeparator ( title , myTable ) , BorderLayout . NORTH ) ;
add ( scrollPane , BorderLayout . CENTER ) ;
- myTable . addFocusListener ( new FocusAdapter... | do not select first raw when checkbox selected |
<nb> public class WebView extends AbsoluteLayout
private native int nativeGetDrawGLFunction ( Rect rect , Rect viewRect ,
float scale , int extras ) ;
private native void nativeUpdateDrawGLFunction ( Rect rect , Rect viewRect ) ;
- private native boolean nativeDrawGL ( Rect rect , float scale , int extras ) ;
... | Remove uncalled function java counterpart of |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
- import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> public class WordPress extends MultiDexApplication {
private static Context mContext ;
private static BitmapLruCache mBitmapCache ;
... | remove unecessary method |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAM... | enable cache monitor on computes by default |
<nb> public class SerializedCache implements Cache {
Serializable result ;
try {
ByteArrayInputStream bis = new ByteArrayInputStream ( ( byte [ ] ) value ) ;
- ObjectInputStream ois = new ThreadContextObjectInputStream ( bis ) ;
+ ObjectInputStream ois = new CustomObjectInputStream ( bis ) ;
result = ( Seri... | renamed inner class |
<nb> public class WebMergedContextConfiguration extends MergedContextConfiguration {
COMMENT
COMMENT
COMMENT
+ @ deprecated
public WebMergedContextConfiguration (
Class < ? > testClass ,
String [ ] locations , | Add Deprecated to WebMergedContextConfiguration constructor |
<nb> public class ExplodedArchiveTests {
Entry entry = getEntriesMap ( this . archive ) . get ( STRING0 ) ;
Archive nested = this . archive . getNestedArchive ( entry ) ;
assertThat ( nested . getUrl ( ) . toString ( ) ,
- equalTo ( STRING1 + this . rootFolder . getPath ( ) + STRING2 ) ) ;
+ equalTo ( STRING1... | Prevent test failures under Windows |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.