diff
stringlengths
38
1.78k
msg_token
stringlengths
9
190
<nb> public class MainActivity extends AppCompatActivity { adsElement . setTitle ( STRING0 ) ; View aboutPage = new AboutPage ( this ) + . setCustomFont ( STRING1 ) . isRTL ( false ) . setImage ( R . drawable . dummy_image ) . addItem ( versionElement )
add custom font example
<nb> package NAMESPACE ; - import NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; import NAMESPACE ;
moved import of XmppAddress
<nb> public class ONetworkProtocolBinary extends ONetworkProtocol { noToken = true ; } + if ( connection == null && clientTxId < NUMBER0 && requestType == OChannelBinaryProtocol . REQUEST_DB_CLOSE ) + SINGLE + return null ; + if ( noToken ) { if ( clientTxId < NUMBER0 ) { - if ( requestType != OChan...
skipped the case of close of not existent session
<nb> public class GridCaptionPanel extends JPanel implements ComponentSelectionListen } int newSize = newCoord - prevCoord ; + if ( ! myEditor . ensureEditable ( ) ) { + return ; + } + if ( mySelectedContainer . getParent ( ) . isXY ( ) && myResizeLine == coords . length ) { final JComponent parentDel...
ensure editable on column resize
<nb> public class JavaLibraryProjectInitDescriptor extends LanguageLibraryProjectInit } public ProjectInitDescriptor withModifier ( String modifier ) { - String supportedModifiersStr = Joiner . on ( STRING0 ) . join ( supportedModifiers . keySet ( ) ) ; - if ( supportedModifiers . get ( modifier ) == null )...
generate supportedModifiers string lazily
<nb> 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 ; COMMENT
remove unused imports
<nb> public class AliasUser extends Command { eventTracker . aliasUser ( request . getParameter ( STRING0 ) , request . getParameter ( STRING1 ) ) ; - response . getWriter ( ) . println ( STRING2 ) ; + response . getWriter ( ) . println ( STRING3 ) ; } }
Fix jsonp error when alias user
<nb> public final class ViewRoot extends Handler implements ViewParent , } } - if ( attachInfo . mRecomputeGlobalAttributes ) { + if ( attachInfo . mRecomputeGlobalAttributes && host . mAttachInfo != null ) { SINGLE attachInfo . mRecomputeGlobalAttributes = false ; boolean oldScreenOn = attachInfo . mKe...
Prevent crash in View when gathering attributes without an AttachInfo
<nb> public class ReplicatedMapTest extends ReplicatedMapAbstractTest { return o1 == o2 ? NUMBER0 : o1 > o2 ? - NUMBER1 : NUMBER1 ; } } - }
Improved assertion messages in failing ReplicatedMapTest tests
<nb> public abstract class MavenTestCase extends UsefulTestCase { } ) ; if ( ! FileUtil . delete ( myDir ) ) { System . out . println ( STRING0 + myDir ) ; + printDirectoryContent ( myDir ) ; myDir . deleteOnExit ( ) ; } <nb> public abstract class MavenTestCase extends UsefulTestCase { resetClassField...
Add additional logining to understand cause of failing maven tests
<nb> public final class Randomness { private static Random getWithoutSeed ( ) { assert currentMethod == null && getRandomMethod == null : STRING0 ; - if ( LOCAL . get ( ) == null ) { + if ( LOCAL == null ) { byte [ ] bytes = SR . generateSeed ( NUMBER0 ) ; long accumulator = NUMBER1 ; for ( int i = NUMB...
Fix NullPointerException in o e c Randomness
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; - import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> public class MavenBeforeRunTasksProvider extends BeforeRunTaskProvider < MavenBefo } public boolean configureTask ( RunConfiguration runConfiguration , M...
Remove test code
<nb> public class HgCachingCommitedChangesProvider implements CachingCommittedChanges for ( HgFileRevision revision : localRevisions ) { HgRevisionNumber vcsRevisionNumber = revision . getRevisionNumber ( ) ; - HgRevisionNumber firstParent = vcsRevisionNumber . getParents ( ) . get ( NUMBER0 ) ; + List < HgRe...
In mercurial a changeset can have no parents that means its a root
<nb> public class HelloPhysics extends SimpleApplication { sphere = new Sphere ( NUMBER0 , NUMBER0 , FLOAT0 , true , false ) ; sphere . setTextureMode ( TextureMode . Projected ) ; COMMENT - box = new Box ( Vector3f . ZERO , brickLength , brickHeight , brickWidth ) ; + box = new Box ( brickLength , brickHeigh...
Removes the use of the deprecated Box contructor with the mesh origin in HelloPhysics
<nb> import NAMESPACE ; public class CompositeFilter implements NodeFilter { private final NodeFilter first ; private final NodeFilter second ; - protected boolean result ; public boolean accepts ( PsiElement element ) { return first . accepts ( element ) ||
remove unused field
<nb> public class UpOperation extends AbstractTransferOperation { } private Thread createAndAddShutdownHook ( final DatabaseVersion newDatabaseVersion ) { - Thread writeResumeFilesShutDownHook = new Thread ( ) { + Thread writeResumeFilesShutDownHook = new Thread ( new Runnable ( ) { @ override public void...
Name shutdown hook thread make resume default in UpOperationOptions
<nb> public class ServerDescription { } COMMENT - COMMENT - COMMENT + COMMENT + COMMENT COMMENT COMMENT COMMENT
Fixed incorrectly formatted JavaDoc
<nb> public class DroidGap extends Activity implements CordovaInterface { SINGLE if ( me . loadUrlTimeout == currentLoadUrlTimeout ) { + COMMENT me . appView . stopLoading ( ) ; LOG . e ( TAG , STRING0 ) ; me . webViewClient . onReceivedError ( me . appView , - NUMBER0 , STRING1 , url ) ; + COMMENT } ...
Removing runnable code for timeout because it s not thread safe
<nb> public class TestForTransformation extends TestMixinTransformation { if ( isCandidateMethod ( methodNode ) && methodNode . getName ( ) . startsWith ( STRING0 ) ) { if ( methodNode . getAnnotations ( ) . size ( ) == NUMBER0 ) { methodNode . addAnnotation ( TEST_ANNOTATION ) ; - hasTestMethods = true ; } ...
fix failing tests
<nb> public class SafeUriStringImpl implements SafeUri return value_ . hashCode ( ) ; } - @ suppresswarnings ( { STRING0 } ) @ override public boolean equals ( Object o ) {
Remove warning suppression that Eclipse doesn t like
<nb> public class TightDB { loadedLibrary = loadCorrectLibrary ( STRING0 , STRING1 , STRING2 ) ; } if ( ! loadedLibrary ) { - throw new RuntimeException ( STRING3 + getJniFileName ( ) + - STRING4 ) ; + System . err . println ( STRING5 + System . getProperty ( JAVA_LIBRARY_PATH ) ) ; + throw new RuntimeExc...
Updated error msg when we can t find the jni lib
<nb> import NAMESPACE ; } } } - myXMLReader . setContentHandler ( new DeltaConfigContentHandler ( ) ) ; - readFile ( new File ( myDestinationDirectory + STRING0 ) ) ; - myConfig . clearDelta ( ) ; + if ( myXMLReader != null ) { + myXMLReader . setContentHandler ( new DeltaConfigContentHandler ( ) ) ; ...
fixed NPE in config reader
<nb> public interface SharedPreferences { COMMENT COMMENT COMMENT - COMMENT + COMMENT + COMMENT + COMMENT COMMENT COMMENT COMMENT <nb> public interface SharedPreferences { COMMENT COMMENT COMMENT - COMMENT + COMMENT + COMMENT + COMMENT COMMENT COMMENT COMMENT
Document the behavior of null values in SharedPreferences
<nb> COMMENT COMMENT COMMENT - COMMENT + COMMENT COMMENT - COMMENT + COMMENT COMMENT COMMENT COMMENT
Addressed some review comments
<nb> 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 ; <nb> public class Annotatio...
Use a default for INTROSPECT_TYPE_LEVEL_MAPPING
<nb> public class ApplicationImpl extends ComponentManagerImpl implements Application disposeSelf ( ) ; - if ( SystemInfo . isMac ) { - new Thread ( new Runnable ( ) { - public void run ( ) { - System . exit ( NUMBER0 ) ; - } - } ) . start ( ) ; - } - else { - System . exit ( NUMBER0 ) ; - } ...
Doesn t exit this way on Macs
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; + import NAMESPACE ; + import NAMESPACE ; + import static NAMESPACE ; <nb> public class SpnegoCredentialsTests { @ test public void verifyCredentialsHashSafelyWithoutPrincipal ( ) { final SpnegoCredential credential = new SpnegoCred...
Drop unnecessary positive assertion functionally reorient to do what will happen in practice vs calling method directly
<nb> public class DashMapFragment extends DashBaseFragment implements IMapDownloader osmandMapTileView = surf . getMapView ( ) ; osmandMapTileView . getView ( ) . setVisibility ( View . VISIBLE ) ; osmandMapTileView . removeAllLayers ( ) ; - MapVectorLayer mapVectorLayer = new MapVectorLayer ( null ) ; + MapV...
Fixed merge bug
<nb> public class TrayProviderTest extends TrayProviderTestCase { } } - public void testSetAuthority ( ) throws Exception { - - } - public void testShutdown ( ) throws Exception { final TrayProvider provider = startupProvider ( ) ; final SQLiteDatabase writableDatabase = provider . mDbHelper . getWr...
removed empty test method
<nb> public class DefaultServerEndpointConfigurator extends ServerEndpointConfig . Configurator { @ override + public < T > T getEndpointInstance ( Class < T > clazz ) + throws InstantiationException { + try { + return clazz . newInstance ( ) ; + } catch ( IllegalAccessException e ) { + InstantiationE...
Fix infinite loop
<nb> abstract class BasicInvocation implements Callback < Object > , BackupCompletionCall if ( response == INTERRUPTED_RESPONSE ) { throw new InterruptedException ( STRING0 + BasicInvocation . this + STRING1 ) ; } - if ( response == WAIT_RESPONSE ) { - System . err . println ( STRING2 + op ) ; - } return ...
debug log cleanup
<nb> public class EnableAutoConfigurationImportSelector COMMENT protected List < String > getCandidateConfigurations ( AnnotationMetadata metadata , AnnotationAttributes attributes ) { - return SpringFactoriesLoader . loadFactoryNames ( + List < String > configurations = SpringFactoriesLoader . loadFactoryNam...
Add check for non empty list of factories
<nb> public final class Ray implements Savable , Cloneable , Collidable , java . io . Serial } COMMENT - COMMENT + COMMENT COMMENT COMMENT COMMENT - COMMENT + COMMENT COMMENT public float getLimit ( ) { return limit ;
javadoc spelling fix thanks bortreb
<nb> public class Transaction extends Message implements Serializable { return getHash ( ) . toString ( ) ; } - void setFakeHashForTesting ( Sha256Hash hash ) { - this . hash = hash ; - } - COMMENT COMMENT COMMENT
Delete unused setFakeHashForTesting 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 NAMES...
add some alignment to revisions
<nb> import static NAMESPACE ; COMMENT COMMENT @ runwith ( HazelcastSerialClassRunner . class ) - @ category ( SlowTest . class ) + @ category ( QuickTest . class ) public class PartitionControlledIdTest extends HazelcastTestSupport { private HazelcastInstance [ ] instances ;
Adds PartitionControlledIdTest to fast tests
<nb> public class JsMap < T > extends JavaScriptObject { protected JsMap ( ) { } + @ suppresswarnings ( STRING0 ) public static native final JsMap create ( ) COMMENT ; public native final T get ( String key ) / * - {
eliminate eclipse warning
<nb> public class Task < T > extends CompletableFuture < T > SINGLE SINGLE - SINGLE - SINGLE - - SINGLE - SINGLE COMMENT <nb> public class Task < T > extends CompletableFuture < T > COMMENT COMMENT COMMENT + COMMENT + COMMENT + COMMENT COMMENT COMMENT COMMENT
Removing TODO about adding timeout to tasks
<nb> public final class ActivityThread { final ContextImpl appContext = new ContextImpl ( ) ; appContext . init ( data . info , null , this ) ; - final File cacheDir = appContext . getCacheDir ( ) ; + if ( ! Process . isIsolated ( ) ) { + final File cacheDir = appContext . getCacheDir ( ) ; - SINGLE -...
Don t create cache directory for isolated processes
<nb> public class FavoritesActivity extends TabActivity { @ override public void onCreate ( Bundle icicle ) { - ( ( OsmandApplication ) getApplication ( ) ) . applyTheme ( this ) ; + OsmandApplication app = ( OsmandApplication ) getApplication ( ) ; + app . applyTheme ( this ) ; super . onCreate ( icicle ...
Added events for search open and my places open
<nb> public class PreferencesFrame { } SINGLE - new Thread ( new Runnable ( ) { + EventQueue . invokeLater ( new Runnable ( ) { public void run ( ) { initFontList ( ) ; } - } ) . start ( ) ; + } ) ; fontSizeField . setSelectedItem ( Preferences . getInteger ( STRING0 ) ) ; consoleSizeField . s...
Replace Thread with invokeLater in PreferencesFrame
<nb> public abstract class LightGrid extends Canvas { columnBeingSorted = column ; break ; } + x2 += column . getWidth ( ) ; if ( x2 >= ( x - COLUMN_RESIZER_THRESHOLD ) && x2 <= ( x + COLUMN_RESIZER_THRESHOLD ) ) { overResizer = true ; columnBeingResized = column ; break ; } + } else { + x2 += col...
Grid columns resize fix
<nb> package NAMESPACE ; - import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; - import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> package NAMESPACE ; - import NAM...
Fixed some warnings
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> public class DbImportExportTest extends DocumentDBBaseTest implements OCommandOu public static final String NEW_DB_PATH = STRING0 ; publ...
Added a test case to check if CUSTOM properties in class are exported an imported correctly
<nb> public class ESQueryBuilder { if ( whereClause . isPresent ( ) ) { COMMENT - COMMENT - COMMENT - COMMENT + COMMENT COMMENT Symbol normalizedClause = normalizer . process ( whereClause . get ( ) , null ) ; visitor . process ( normalizedClause , context ) ;
updated comment on normalizer usage as ES query builder
<nb> public final class PsiUtil extends PsiUtilBase { myNextObtained = true ; return ; } - if ( myCurrentOwner . hasModifierProperty ( PsiModifier . STATIC ) || myCurrentOwner . getContainingClass ( ) == null ) { + final PsiClass containingClass = myCurrentOwner . getContainingClass ( ) ; + if ( myCurrentOw...
Prevent double calculation of containing class
<nb> public class RCompletionManager implements CompletionManager return popup_ . selectPrevPage ( ) ; else if ( keycode == KeyCodes . KEY_PAGEDOWN ) return popup_ . selectNextPage ( ) ; + else if ( keycode == KeyCodes . KEY_HOME ) + return popup_ . selectFirst ( ) ; + else if ( keycode == KeyCodes . KEY_EN...
bring back HOME END for navigating completion list
<nb> public class PythonSdkUpdater implements StartupActivity { try { LOG . info ( STRING0 + sdk . getHomePath ( ) ) ; updateSdk ( project , null , PySdkUpdater . fromSdkPath ( sdk . getHomePath ( ) ) ) ; + } catch ( PySdkUpdater . PySdkNotFoundException e ) { + LOG . info ( STRING1 + sdk . getName ( ) + STRI...
Don t throw exception in case of removal of sdk during update process
<nb> public class ClassProto implements TypeProto { return ( classDef . getAccessFlags ( ) & AccessFlags . INTERFACE . getValue ( ) ) != NUMBER0 ; } + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMME...
Add some java docs for the getInterface methods
<nb> public final class Settings { default : throw new IllegalArgumentException ( STRING0 + mode ) ; } - boolean gpsSuccess = Settings . Secure . setLocationProviderEnabledForUser ( - cr , LocationManager . GPS_PROVIDER , gps , userId ) ; + SINGLE + SINGLE + SINGLE + SINGLE + SINGLE + SINGLE + S...
Fix a race where NLP consent dialog can be shown unnecessarily
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> public final class ELContextImpl extends ELContext { DefaultResolver = null ; } else { DefaultResolver = new CompositeELResolver ( ) ;...
Add new resolvers to default resolver bug spotted by remm
<nb> package NAMESPACE ; import NAMESPACE ; import NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> public class CommandLineMigrator { Connection connection = driver . connect ( url , info ) ; if ( connection == null ) { - throw new MigrationFailedException ( STRING0 )...
Improved error message
<nb> public abstract class AbstractBlockChain { final boolean filtered = filteredTxHashes != null && filteredTxn != null ; Preconditions . checkArgument ( ( block . transactions == null && filtered ) || ( block . transactions != null && ! filtered ) ) ; - if ( ! shouldVerifyTransactions ( ) ) - this . block =...
Don t throw away orphan block transactions before they are sent to listeners even in SPV mode
<nb> import NAMESPACE ; COMMENT public class DarculaPasswordFieldUI extends BasicPasswordFieldUI { - @ suppresswarnings ( { STRING0 , STRING1 } ) - public static ComponentUI createUI ( final JComponent c ) { - c . addFocusListener ( new FocusAdapter ( ) { + public DarculaPasswordFieldUI ( final JPasswordF...
add focus listener in DarculaPasswordField constructor
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; - import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> import NAMESPACE ; if ( ! expiringWorkerQueue . isEmpty ( ) ) { long currentTimestamp = now ( ) ; - Iterator < ThreadWorker > threadWorkerIterator = expiringWorkerQueue ....
Add check to ensure that the worker was removed from the queue before unsubscribing that worker
<nb> public interface Entity { COMMENT COMMENT public int getEntityID ( ) ; - COMMENT - COMMENT - COMMENT - COMMENT - COMMENT - public int getHealth ( ) ; - - COMMENT - COMMENT - COMMENT - COMMENT - COMMENT - public void setHealth ( int health ) ; }
Entity has no health
<nb> public class OutputChecker { result = result . replaceAll ( STRING0 + TEST_JDK_HOME_STR + STRING1 , STRING2 ) ; SINGLE - SINGLE + result = result . replaceAll ( STRING3 , STRING2 ) ; result = result . replaceAll ( STRING4 , STRING5 ) ; result = result . replaceAll ( STRING6 , STRING7 ) ;
fixed blinking ExecutionManagerTest testRun
<nb> public class MavenDependencyCompletionAndResolutionTest extends MavenDomWithIndi STRING0 ) ; importProject ( ) ; - - try { - checkHighlighting ( m , true , false , true ) ; - } - catch ( Throwable e ) { - PsiFile psiFile = PsiManager . getInstance ( myProject ) . findFile ( m ) ; - String text ...
Remove debug info
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; - import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; - import NAMESPACE ; - public class AirMapView extends FrameLayout implements OnCameraCh...
Cleaning up import statements
<nb> package NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> public class HistoryPanel extends Composite implements Display public void removeBranchToolbarButton ( ) { topToolbar_ . removeLeftWi...
provide extra left margin for commit filter when the branch switcher is hidden
<nb> public class ObjCMemberPlugin extends AbstractCompilerPlugin { } annotation = getAnnotation ( method , IBOUTLET ) ; if ( annotation != null ) { - if ( method . isStatic ( ) || ! method . isNative ( ) ) { + if ( method . isStatic ( ) ) { throw new CompilerException ( STRING0 - + method + STRING1 ) ; ...
Allow IBOutlet methods to be either native or non native
<nb> package NAMESPACE ; import NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; + @ singleton public class QueryIDProvider { private final String host ;
make queryIDProvider a singleton
<nb> public @ interface Argument { AnnotationDescription . Loadable < Argument > annotation = parameterAnnotations . ofType ( Argument . class ) ; if ( annotation != null ) { results . remove ( annotation . load ( ) . value ( ) ) ; - break ; } } return results . iterator ( ) ;
Removed faulty break statement which survived refactoring
<nb> public class IDEACoverageRunner extends CoverageRunner { ProgressManager . getInstance ( ) . run ( new Task . Backgroundable ( project , STRING0 ) { final Exception [ ] myExceptions = new Exception [ NUMBER0 ] ; - @ override + public void run ( @ notnull final ProgressIndicator indicator ) { try { ...
remove Override usages on methods implementing an interface method
<nb> public class DashWaypointsFragment extends DashLocationFragment { Builder builder = new AlertDialog . Builder ( view . getContext ( ) ) ; SINGLE builder . setTitle ( getString ( R . string . delete_target_point ) ) ; - builder . setMessage ( getString ( R . string . clear_destination ) ) ; + SINGLE + b...
improve waypoint deletion confirmation dialog
<nb> + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT package NAMESPACE ; COMMENT <nb> + COMMENT + COMMENT + COMMENT + COMMEN...
Add missing license headers
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; - import NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> import NAMESPACE ; import static NAMESPACE ; import static NAMESPACE ; + import static NAMESPACE ; COMMENT COMMENT
fixing psychotic behavior from IntelliJ optimizing away needed static imports
<nb> public class CacheComponent extends DefaultComponent { protected void doStart ( ) throws Exception { super . doStart ( ) ; if ( cacheManagerFactory == null ) { - InputStream is = null ; if ( configurationFile != null ) { - is = ResourceHelper . resolveMandatoryResourceAsInputStream ( getCamelContext ( ...
camel cache Should create default cache manager factory if no specific config file configured
<nb> public class DefaultGenerator extends AbstractGenerator { out . println ( STRING0 ) ; out . close ( ) ; - watch . splitInfo ( STRING1 ) ; + watch . splitInfo ( STRING2 ) ; } protected void generateTableReference ( GenerationWriter out , TableDefinition table ) {
Improved logging formatting
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; - import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> public class TaskListActivity extends AstridActivity implements MainMenuListener String query = getIntent ( ) . getStringExtra ( SearchMan...
Don t use conversion to uppercase when searching it breaks non ascii searching for other languages
<nb> package NAMESPACE ; import NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; + COMMENT + COMMENT + COMMENT + COMMENT public class JdbcPetVisitExtractor extends OneToManyResultSetExtractor < JdbcPet , Visit , Integer > { <nb> public class Jdb...
Add some javadoc
<nb> public abstract class BalloonItemizedOverlay < Item extends OverlayItem > extends I protected MapView getMapView ( ) { return mapView ; } - + + COMMENT + COMMENT + COMMENT + public void bringBalloonToFront ( ) { + if ( balloonView != null ) { + balloonView . bringToFront ( ) ; + } + } +...
Added bringBalloonToFront for adjusting balloon z order
<nb> public class Parse implements Tokens { buf . append ( STRING0 ) . append ( tagIndex ) . append ( STRING1 ) ; + tagIndex -- ; } private void startTag ( ) {
fixed bug in endTag that wasn t decrementing the tag index
<nb> package NAMESPACE ; COMMENT - COMMENT - COMMENT + COMMENT + COMMENT COMMENT COMMENT COMMENT
VisibleForTesting Javadoc tweaks
<nb> import static NAMESPACE ; COMMENT @ runwith ( Arquillian . class ) @ runasclient + @ ignore ( STRING0 ) public class IIOPNamingTestCase { <nb> public class IIOPNamingTestCase { } } - @ test @ ignore ( STRING0 ) + @ test public void testIIOPNamingIIOPInvocation ( ) throws NamingException...
Ignore all of IIOPNamingTestCase
<nb> class LocalCache < K , V > extends AbstractMap < K , V > implements ConcurrentMap < K , V > throw new AssertionError ( ) ; } - checkState ( ! Thread . holdsLock ( e ) , STRING0 ) ; + checkState ( ! Thread . holdsLock ( e ) , STRING1 , key ) ; SINGLE try { V value = valueReference . waitForValue ( )...
Include the key in the recursive load exception to make debugging easier
<nb> static public Object get ( Object coll , Object key ) { else if ( key instanceof Number && ( coll instanceof String || coll . getClass ( ) . isArray ( ) ) ) { int n = ( ( Number ) key ) . intValue ( ) ; - return nth ( coll , n ) ; + if ( n < count ( coll ) ) + return nth ( coll , n ) ; + return null ...
fixed RT get string array with index out of bounds to return null
<nb> import static NAMESPACE ; COMMENT public class PlaceholderResource implements Resource { + private static final ModelNode MODEL = new ModelNode ( ) ; public static PlaceholderResource INSTANCE = new PlaceholderResource ( ) ; + static { + MODEL . protect ( ) ; + } + private PlaceholderResource...
reuse existing placeholder resources
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; - COMMENT - COMMENT - COMMENT public class LoggingOutput implements MessageOutput { private static final Logger LOG = LoggerFactory . getLogger ( LoggingOutput . class ) ; private final AtomicBoolean isRunning = new AtomicBoolean ( false ) ...
Remove unused constructor parameter from LoggingOutput
<nb> public class WebView extends AbsoluteLayout selectionDone ( ) ; } mOrientation = newConfig . orientation ; + contentInvalidateAll ( ) ; } COMMENT
Force a WebView pictureset invalidation on screen rotation
<nb> public abstract class AbstractDao < T , K > { private void deleteByKeyInsideSynchronized ( K key , SQLiteStatement stmt ) { if ( key instanceof Long ) { stmt . bindLong ( NUMBER0 , ( Long ) key ) ; + } else if ( key == null ) { + throw new DaoException ( STRING0 ) ; } else { stmt . bindString ( NUMBE...
throw nice exception if entity is updated or deleted with null key
<nb> package NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ;
Fixed compiler error
<nb> public abstract class AbstractApplicationContext extends DefaultResourceLoader this . shutdownHook = new Thread ( ) { @ override public void run ( ) { - doClose ( ) ; + synchronized ( startupShutdownMonitor ) { + doClose ( ) ; + } } } ; Runtime . getRuntime ( ) . addShutdownHook ( this . shutdo...
Shutdown hook triggers doClose within startupShutdownMonitor
<nb> public class OsMoGroupsActivity extends OsmandExpandableListActivity implements MenuItem . SHOW_AS_ACTION_IF_ROOM ) ; SINGLE if ( device != null ) { - createMenuItem ( menu , SETTINGS_ID , R . string . settings , R . drawable . ic_action_settings_light , R . drawable . ic_action_sail_boat_dark , + create...
Fix regions and add edit device color
<nb> public final class Parameters { if ( nameEnd <= nameStart ) { if ( log . isInfoEnabled ( ) ) { - String extract ; - if ( valueEnd >= nameStart ) { - extract = new String ( bytes , nameStart , + if ( valueEnd >= nameStart && log . isDebugEnabled ( ) ) { + String extract = new String ( bytes , nameSt...
Do not log invalid parameter value unless debug logging is enabled
<nb> public class TestAccessLogValve { final int cacheSize = NUMBER0 ; SimpleDateFormat sdf = - new SimpleDateFormat ( STRING0 , Locale . US ) ; + new SimpleDateFormat ( STRING1 , Locale . US ) ; sdf . setTimeZone ( TimeZone . getDefault ( ) ) ; AccessLogValve . DateFormatCache dfc = <nb> public class...
Fix time zone formatting in ALV test
<nb> public class TextMergeTool implements MergeTool { int sourceStartLine = change . getStartLine ( sourceSide ) ; int sourceEndLine = change . getEndLine ( sourceSide ) ; + if ( sourceStartLine == sourceEndLine ) return ; SINGLE + enterBulkChangeUpdateBlock ( ) ; try { DiffUtil . applyModification ( g...
do not mark deletions as resolved on append change
<nb> public class CleanOverlappingFilter implements RuleMatchFilter { prevRuleMatch = ruleMatch ; continue ; } + SINGLE + if ( ruleMatch . getFromPos ( ) < prevRuleMatch . getFromPos ( ) ) { + throw new RuntimeException ( + STRING0 ) ; + } SINGLE if ( ruleMatch . getFromPos ( ) > prevRuleMatch . get...
throw exception if matches aren t sorted
<nb> public class QwertyKeyListener extends BaseKeyListener { PICKER_SETS . put ( STRING0 , STRING1 ) ; PICKER_SETS . put ( STRING2 , STRING3 ) ; PICKER_SETS . put ( KeyCharacterMap . PICKER_DIALOG_INPUT , - STRING4 ) ; + STRING5 ) ; PICKER_SETS . put ( STRING6 , STRING7 ) ; SINGLE
Add vertical bar to the alt space character picker for the hardware keyboard
<nb> public class ConnectivityService extends IConnectivityManager . Stub { final int mtu = nt . getLinkProperties ( ) . getMtu ( ) ; if ( mtu < NUMBER0 || mtu > NUMBER1 ) { - loge ( STRING0 + nt ) ; + loge ( STRING0 + mtu + STRING1 + nt ) ; return ; }
Modify unexpected mtu debug message to print mtu
<nb> public class WebImageView extends ViewSwitcher { this . imageUrl = imageUrl ; } - public void setProgressDrawable ( Drawable progressDrawable ) { - this . progressDrawable = progressDrawable ; - } - COMMENT COMMENT COMMENT
remove the progress drawable setter since it actually has no effect
<nb> import NAMESPACE ; COMMENT COMMENT public class LibsFragmentCompat { - private RecyclerView mRecyclerView ; private FastItemAdapter mAdapter ; private LibsBuilder builder = null ; <nb> public class LibsFragmentCompat { } SINGLE + RecyclerView mRecyclerView ; if ( view . getId ( ) == R . i...
prevent potential leak
<nb> public class RejectTransformationDescriptionBuilder extends AbstractTransformati @ override public TransformedOperation transformOperation ( final TransformationContext context , final PathAddress address , final ModelNode operation ) throws OperationFailedException { - if ( context . getTarget ( ) . isIgn...
Don t throw error in OperationTransformers on way out the host might have changed their ignores after the initial registration
<nb> public class ORule implements Serializable { { return nameToGenericMap . get ( name ) ; } + + public static ResourceGeneric [ ] values ( ) + { + return genericToLegacyMap . keySet ( ) . toArray ( new ResourceGeneric [ genericToLegacyMap . size ( ) ] ) ; + } @ override public String toString (...
Add utility method values to get all ResourceGeneric
<nb> public final class ForwardingBarrier extends AbstractOutputChannelForwarder { final UnexpectedEnvelopeEvent uee = ( UnexpectedEnvelopeEvent ) event ; if ( uee . getExpectedSequenceNumber ( ) > this . forwardingBarrier ) { this . forwardingBarrier = uee . getExpectedSequenceNumber ( ) ; - LOG . info ( STRIN...
Reduced verbosity of ForwardingBarrier
<nb> public class XBinder extends XHook { STRING0 , } , new String [ ] { SINGLE + STRING1 , } , new String [ ] { SINGLE STRING2 ,
Added IPC exception support info
<nb> package NAMESPACE ; COMMENT COMMENT COMMENT - COMMENT + COMMENT COMMENT COMMENT COMMENT <nb> package NAMESPACE ; COMMENT public class DefaultOperationRequestParser implements OperationRequestParser { - public static final String FORMAT = STRING0 ; + public static final String FORMAT = S...
corrected the operation request format in the logs
<nb> public class AppleBundle extends AbstractBuildRule implements NativeTestable { getInfoPlistAdditionalKeys ( platformName , sdkName ) , getInfoPlistOverrideKeys ( platformName ) ) ) ; - if ( binary . isPresent ( ) ) { + SINGLE + SINGLE + SINGLE + SINGLE + if ( binary . isPresent ( ) && binary . ge...
Work around CxxLibrary not having output
<nb> public abstract class ActorEditTextActivity extends BaseActivity { } @ override - protected void onDestroy ( ) { - super . onDestroy ( ) ; - + protected void onPause ( ) { + super . onPause ( ) ; SINGLE - SINGLE emojiKeyboard . destroy ( ) ; } }
destroy emojiKeyboard onPause
<nb> package NAMESPACE ; COMMENT public class HashCode { + private static final int C1 = NUMBER0 ; + private static final int C2 = NUMBER1 ; + + COMMENT + COMMENT + COMMENT + public static int smear ( int hashCode ) { + return C2 * Integer . rotateLeft ( hashCode * C1 , NUMBER2 ) ; + } + COM...
Added cool smear method for hashcode calculation