diff
stringlengths
38
1.78k
msg_token
stringlengths
9
190
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> public class PsiTreeUtil { @ nullable public static PsiElement getStubOrPsiParent ( @ nullable PsiElement element ) { - return getSt...
optimize PsiTreeUtil getStubOrPsiParent
<nb> public class PullUpConflictsUtil { } } ) ; if ( abstractMethod . hasModifierProperty ( PsiModifier . PACKAGE_LOCAL ) && toDifferentPackage ) { - String message = STRING0 + RefactoringUIUtil . getDescription ( abstractMethod , false ) + - STRING1 ; - message = CommonRefactoringUtil . capitalize ( messag...
make method public without any warning
<nb> public class AndroidDevicesTableModel extends AbstractTableModel { private static final String DEVICE = STRING0 ; private static final String STATE = STRING1 ; private static final String ACTION = STRING2 ; - private static final String CONNECTED = STRING3 ; - private static final String DISCONNECTED = S...
capitalize states values
<nb> package NAMESPACE ; import NAMESPACE ; import NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> public class ServerTypeUtils { types . add ( ExecutionVertexID . class ) ; types . add ( FileInputSplit . class ) ; types . add ( GateDeploymentDescriptor . class ) ; + ...
Added missing type to ServerTypeUtils
<nb> final class Utils { private static final int KEY_PADDING = NUMBER0 ; SINGLE private static final int MIN_DISK_CACHE_SIZE = NUMBER1 * NUMBER2 * NUMBER2 ; SINGLE private static final int MAX_DISK_CACHE_SIZE = NUMBER0 * NUMBER2 * NUMBER2 ; SINGLE - private static final int MAX_MEM_CACHE_SIZE = NUMBER3 * NUMBE...
Remove cap on memory cache
<nb> class JspReader { for ( int i = NUMBER0 ; ( i = reader . read ( buf ) ) != - NUMBER1 ; ) caw . write ( buf , NUMBER0 , i ) ; caw . close ( ) ; - current = new Mark ( this , caw . toCharArray ( ) , getFile ( fileid ) , master ) ; + current = new Mark ( this , caw . toCharArray ( ) , fname , master ) ; }...
Use the file name directly and remove the now unused getFile method
<nb> import NAMESPACE ; COMMENT COMMENT public interface Writable { - COMMENT - COMMENT - COMMENT - COMMENT - COMMENT - COMMENT - void write ( DataOutput out ) throws IOException ; + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + void write ( DataOutput out ) t...
Fix checkstyle warning for Writable
<nb> public class BackgroundExecutor { ScheduledExecutorService scheduledExecutorService = ( ScheduledExecutorService ) executor ; future = scheduledExecutorService . schedule ( runnable , delay , TimeUnit . MILLISECONDS ) ; } else { - COMMENT if ( executor instanceof ExecutorService ) { ExecutorService exe...
Remove useless comment
<nb> public final class Timber { } ; private Timber ( ) { + throw new AssertionError ( STRING0 ) ; } COMMENT
Prevent reflective instantiation by masochists
<nb> public class PluginOptionSpec { public PluginOptionSpec ( String id , String description , ValueType type , boolean mandatory , boolean sensitive , String defaultValue ) { if ( ! mandatory && sensitive ) { - throw new IllegalArgumentException ( STRING0 ) ; + throw new IllegalArgumentException ( STRING1 )...
Remove space in error message add new line
<nb> public class RepositoryFactoryTest { ImmutableMap . < String , String > of ( ) , Platform . detect ( ) , new TestConsole ( ) , - mainProjectFolder . getRoot ( ) . toPath ( ) ) ; + mainProjectFolder . getRoot ( ) . toPath ( ) . toRealPath ( ) ) ; Repository mainProjectRepo = factory . getRepositoryByC...
Fix ant tests
<nb> + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT package NAMESPACE ; import NAMESPACE ; <nb> import NAMESPACE ; import NAMESPACE ; COMMENT - COMMENT + COMMENT COMME...
Add license and comment
<nb> public class Wallet extends BaseTaggableObject implements Serializable , BlockCha public boolean ensureMinRequiredFee = true ; COMMENT + COMMENT + COMMENT + public boolean signInputs = true ; + + COMMENT COMMENT COMMENT COMMENT <nb> public class Wallet extends BaseTaggableObject implements ...
Add SendRequest signInputs flag to allow skipping the signing
<nb> package NAMESPACE ; import NAMESPACE ; import NAMESPACE ; - import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; + import NAMESPACE ; - public class ContentFragment extends Fragment implements + public class ContentFragment extends SherlockFragment ...
fixed bug needs to inherit from SherlockFragment
<nb> public class GrReferenceExpressionImpl extends GrReferenceElementImpl < GrExpressi } public boolean isReferenceTo ( PsiElement element ) { - PsiElement target = GroovyTargetElementEvaluator . correctSearchTargets ( resolve ( ) ) ; - if ( getManager ( ) . areElementsEquivalent ( element , target ) ) { +...
GrReferenceExpression isReferenceTo should check the uncorrected resolve result as well as its navigation element
<nb> package NAMESPACE ; COMMENT - http: SINGLE + http: SINGLE COMMENT public class LongestCommonSubsequence {
small change Fix the reference link for lcs
<nb> public class FontManager { public void loadFont ( final Font pFont ) { this . mFonts . add ( pFont ) ; } + + public void loadFonts ( final Font . . . pFonts ) { + for ( int i = pFonts . length - NUMBER0 ; i >= NUMBER1 ; i -- ) { + this . loadFont ( pFonts [ i ] ) ; + } + } public void ensureF...
Added convenience method to load multiple fonts with one function
<nb> final class OLogSegment implements Comparable < OLogSegment > { flushPage ( pageContent ) ; } } + if ( OGlobalConfiguration . WAL_SYNC_ON_PAGE_FLUSH . getValueAsBoolean ( ) ) { + synchronized ( rndFile ) { + rndFile . getFD ( ) . sync ( ) ; + } + } this . writeAheadLog . setFlushedLsn ( lsn ) ; ...
add disk sync at the end of wal flush task
<nb> public class SenderActor extends ModuleActor { getConversationActor ( peer ) . send ( message ) ; pendingMessages . getPendingMessages ( ) . add ( new PendingMessage ( peer , rid , new TextContent ( text ) ) ) ; + savePending ( ) ; performSendContent ( peer , rid , new TextContent ( text ) ) ; }
Fix resending of messages
<nb> public class TargetOptionsComponent extends JPanel { @ override public void removeRow ( int idx ) { myItems . remove ( idx ) ; + fireTableDataChanged ( ) ; } public void setItems ( Map < Module , String > items ) {
update table UI when an item is removed from Per module bytecode version table
<nb> public class GradleModulesImporter { GradleProjectResolver resolver = manager . getFacade ( ) . getResolver ( ) ; GradleProject projectWithResolvedLibraries = resolver . resolveProjectInfo ( gradleProjectPath , true ) ; gradleProjectRef . set ( projectWithResolvedLibraries ) ; - UIUtil . invokeLaterIfNeede...
implement import from gradle processing
<nb> public class SessionSetting { } private boolean isAnyResponse ( ) { - return request == null && mount == null && proxy == null && redirectTo == null ; + return request == null && mount == null && proxy == null && redirectTo == null && resource == null ; } @ override
fixed any response issue in standalone mode
<nb> public abstract class AbsListView extends AdapterView < ListAdapter > implements Te } } + SINGLE isScrap [ NUMBER0 ] = true ; - - SINGLE - transientView . dispatchFinishTemporaryDetach ( ) ; return transientView ; } <nb> public abstract class AbsListView extends AdapterView < ListAdapter > ...
Revert Call dispatchFinishTemporaryDetach before returning a transient view
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; + import NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; <nb> public abstract class GPathResult extends GroovyObjectSupport implements Writabl public boolean equals ( Object obj ) { return text ( ) . equals ( obj . toString ( ) ) ; ...
Add a list method to gereate a List of nodes for things like sorting
<nb> public interface ModuleDependency extends Dependency { COMMENT COMMENT - COMMENT + COMMENT COMMENT COMMENT COMMENT
Fix typo in javadoc
<nb> public class WebView extends AbsoluteLayout com . android . internal . R . string . autofill_this_form ) . toString ( ) + STRING0 + mAutoFillData . getPreviewString ( ) ) ; - } } pastEntries . addAll ( mDatabase . getFormData ( mUrl , mName ) ) ; <nb> public class WebView extends AbsoluteLayout }...
Fix the build and scrollable layers gesture
<nb> import NAMESPACE ; COMMENT COMMENT COMMENT - COMMENT - COMMENT - COMMENT + COMMENT + COMMENT + COMMENT COMMENT COMMENT COMMENT
Fix a broken link in javadoc
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; + import NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; - import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ;
ninja use javax annotation instead of avro
<nb> COMMENT - COMMENT + COMMENT COMMENT COMMENT COMMENT <nb> public class DefaultAnnotationHandlerMapping extends AbstractMapBasedHandlerMapp } else if ( other instanceof RenderMappingPredicate ) { RenderMappingPredicate otherRender = ( RenderMappingPredicate ) other ; - boolean hasWindowState = ...
Fix window state comparison in DAHandlerMapping
<nb> public class Checker { InstanceConfig config = exhibitor . getConfigManager ( ) . getConfig ( ) ; + if ( ! isSet ( config , StringConfigs . ZOOKEEPER_DATA_DIRECTORY ) || ! isSet ( config , StringConfigs . ZOOKEEPER_INSTALL_DIRECTORY ) ) + { + return InstanceStateTypes . LATENT ; + } + InstanceSta...
Keep state at LATENT if ZK dirs haven t been set yet
<nb> public class WhenThingsGoWrongTests extends ScriptTestCase { assertThat ( e . getMessage ( ) , containsString ( STRING0 ) ) ; } + public void testBadBoxingCast ( ) { + expectScriptThrows ( ClassCastException . class , ( ) - > { + exec ( STRING1 ) ; + } ) ; + } }
Add a test
<nb> public interface HazelcastInstance { COMMENT COMMENT COMMENT + COMMENT COMMENT < K , V > ReplicatedMap < K , V > getReplicatedMap ( String name ) ; <nb> public interface HazelcastInstance { COMMENT COMMENT COMMENT + COMMENT COMMENT JobTracker getJobTracker ( String name ) ;
Added missing since markers on HazelcastInstance
<nb> public final class SimpleCache implements Cache { this . listeners = new HashMap < > ( ) ; SINGLE final ConditionVariable conditionVariable = new ConditionVariable ( ) ; - new Thread ( ) { + new Thread ( STRING0 ) { @ override public void run ( ) { synchronized ( SimpleCache . this ) {
Give the SimpleCache initialize Thread a better name
<nb> public class LoggingConditionDisagreesWithLogStatementInspection return ; } } else if ( javaUtilLogging ) { - System . out . println ( STRING0 ) ; if ( ! STRING1 . equals ( methodName ) ) { return ; }
remove debug println
<nb> public class XmppConnectionService extends Service { } public void deleteAccount ( Account account ) { - Log . d ( LOGTAG , STRING0 ) ; if ( account . getXmppConnection ( ) != null ) { this . disconnect ( account , true ) ; }
removed log output
<nb> public class XDebugSessionImpl implements XDebugSession { mySessionTab . detachFromSession ( ) ; } else if ( myConsoleView != null ) { - Disposer . dispose ( myConsoleView ) ; + AppUIUtil . invokeOnEdt ( new Runnable ( ) { + @ override + public void run ( ) { + Disposer . dispose ( myConsoleView ) ...
always dispose console view in EDT
<nb> public class TextView extends View implements ViewTreeObserver . OnPreDrawListener @ override public InputConnection onCreateInputConnection ( EditorInfo outAttrs ) { - createEditorIfNeeded ( STRING0 ) ; if ( onCheckIsTextEditor ( ) && isEnabled ( ) ) { if ( getEditor ( ) . mInputMethodState == null ) ...
Moving focus on text should not create an Editor
<nb> + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + package NAMESPACE ;
Add license header to animations builder
<nb> public class TestNamespaceFacade extends BaseClassForTests public void testIsStarted ( ) throws Exception { CuratorFramework client = CuratorFrameworkFactory . newClient ( server . getConnectString ( ) , new RetryOneTime ( NUMBER0 ) ) ; + client . start ( ) ; CuratorFramework namespaced = client . usingN...
Changed order of checks in TestNamespaceFaced testIsStarted
<nb> import NAMESPACE ; COMMENT public class FileTypeManagerImpl extends FileTypeManagerEx implements NamedJDOMExternalizable , ExportableApplicationComponent { private static final Logger LOG = Logger . getInstance ( STRING0 ) ; - private static final int VERSION = NUMBER0 ; + private static final int VERSIO...
add hprof to ignored
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; - import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> public class ErrorReporter implements Thread . UncaughtExceptionHandler { COMMENT COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT C...
Making ErrorReporter deletePendingReports public now that it has a valid use case
<nb> public class OverriddenMetaAnnotationAttributesTests { SINGLE SINGLE - SINGLE - SINGLE + SINGLE assertArrayEquals ( new String [ ] { STRING0 } , attributes . getStringArray ( STRING1 ) ) ; }
Delete TODO that is now tracked in JIRA
<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 WorkerSto...
remove unused imports
<nb> class Scroller { try { inst . sendPointerSync ( event ) ; } catch ( SecurityException ignored ) { } - inst . waitForIdleSync ( ) ; } eventTime = SystemClock . uptimeMillis ( ) ; event = MotionEvent . obtain ( downTime , eventTime , MotionEvent . ACTION_UP , toX , toY , NUMBER0 ) ;
Removed waitForIdleSync in drag
<nb> public class RateService extends TraktApiService { } } public static final class ShowBuilder extends TraktApiBuilder < RatingResponse > { - private static final String POST_TVDB_ID = STRING0 ; + private static final String POST_TVDB_ID = STRING1 ; private static final String POST_TITLE = STRING2 ; pr...
trakt java Fix rate show does not use correct parameter for TVDb id
<nb> public class JavadocFormatter { if ( fileName . endsWith ( STRING0 ) || fileName . endsWith ( STRING1 ) || - _isGenerated ( originalContent ) ) { return ; <nb> public class SourceFormatter { String content = _fileUtil . read ( file ) ; + if ( _isGenerated ( content ) ) { + return ; + } ...
Source formatting ignore generated content
<nb> package NAMESPACE ; - public abstract class BusinessTagModelDao { + import NAMESPACE ; + + public abstract class BusinessTagModelDao extends EntityBase { private final String name ; public BusinessTagModelDao ( final String name ) {
make BusinessTagModelDao extend EntityBase
<nb> public class ClientApi { alertSet . getAttribute ( STRING0 ) , alertSet . getAttribute ( STRING1 ) , alertSet . getAttribute ( STRING2 ) , - Integer . parseInt ( alertSet . getAttribute ( STRING3 ) ) , - Integer . parseInt ( alertSet . getAttribute ( STRING3 ) ) ) ) ; + Integer . parseInt ( alertSet . ...
Fixed copy n paste errors
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; + import NAMESPACE ; + import NAMESPACE ; @ requiresauthentication @ api ( value = STRING0 , description = STRING1 ) @ path ( STRING2 ) + @ produces ( MediaType . APPLICATION_JSON ) public class GettingStartedResource...
Add default content type to GettingStartedResource
<nb> public class BuildFSState { public static final int VERSION = NUMBER0 ; private static final Logger LOG = Logger . getInstance ( STRING0 ) ; private static final Key < Set < ? extends BuildTarget < ? > > > CONTEXT_TARGETS_KEY = Key . create ( STRING1 ) ; - private static final Key < FilesDelta > NEXT_ROUND...
rename keys according to renamed fields
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> public class LocalSessionFactoryBuilder extends Configuration { } COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + @ override + public void ...
Reliably pass CurrentTenantIdentifierResolver to SessionFactory
<nb> public class Bootstrap implements BootstrapTask { private final ImmutableMap < String , BootstrapTask > tasks = ImmutableMap . of ( STRING0 , new StartTask ( DEFAULT_SHUTDOWN_KEY , ServerType . HTTP ) , STRING1 , new ShutdownTask ( DEFAULT_SHUTDOWN_KEY ) , + STRING2 , new StartTask ( DEFAULT_SHUTDOWN_KEY ,...
introduced http https and socket argument
<nb> package NAMESPACE ; import static NAMESPACE ; import static NAMESPACE ; - import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> public final class Strings { COMMENT COMMENT COMMENT - @ beta public static String commonPrefix ( CharSequence a , CharSequence b ) { checkNotNull ( a ...
Remove Beta from Strings common Pre Suf fix
<nb> public class RecognizerIntent { COMMENT COMMENT - COMMENT - COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT COMMENT COMMENT COMMENT <nb> public class RecognizerIntent { COMMENT COMMENT COMMENT - COMMENT + COMMENT COMMENT COMMEN...
Improve some of the documentation in RecognizerIntent to reduce confusion
<nb> public class TileEngine extends TileBuildCraft implements IPowerReceptor , IInven @ override public boolean isPipeConnected ( ForgeDirection with ) { - if ( engine instanceof EngineWood ) { + if ( engine != null && engine instanceof EngineWood ) { return false ; } <nb> public class TileEngine ext...
Fix some NPEs on TileEngine when it has not be initialized
<nb> public class BinaryMerge extends DTask < BinaryMerge > { for ( int col = NUMBER0 ; col < _fr . numCols ( ) ; col ++ ) { Vec v = _fr . vec ( col ) ; for ( int row = NUMBER0 ; row < _rows . length ; row ++ ) { - assert v . chunkKey ( v . chunkForRow ( _rows [ row ] ) . cidx ( ) ) . home ( ) ; + SINGLE SI...
Removed expensive assert by row deep in GetRawRemoteRows
<nb> public class Environment extends AbstractLifeCycle { } public void setBaseResource ( Resource baseResource ) throws IOException { - this . baseResource = Resource . newResource ( baseResource . getURL ( ) ) ; + this . baseResource = baseResource ; } public void setSessionHandler ( SessionHandler se...
Avoid copying resources
<nb> public class VersionMessage extends Message { SINGLE SINGLE try { - myAddr = new PeerAddress ( InetAddress . getLocalHost ( ) , params . port , NUMBER0 ) ; - theirAddr = new PeerAddress ( InetAddress . getLocalHost ( ) , params . port , NUMBER0 ) ; + SINGLE + SINGLE + final byte [ ] localhost = new...
Create the localhost address without relying on a method that does DNS lookups behind the scenes
<nb> COMMENT package NAMESPACE ; - public class TopicOffsetOutOfRangeException extends FailedFetchException { + public class TopicOffsetOutOfRangeException extends RuntimeException { public TopicOffsetOutOfRangeException ( String message ) { super ( message ) ;
Reverting back to TopicOffsetOutOfRangeException extends RunTimeException
<nb> public class InspectionsConfigTreeTable extends TreeTable { @ override public void setValueAt ( final Object aValue , final Object node , final int column ) { LOG . assertTrue ( column == IS_ENABLED_COLUMN ) ; - LOG . assertTrue ( aValue != null ) ; + LOG . assertTrue ( aValue != null , STRING0 + node ) ...
InspectionsConfigTreeTable added additional description to LOG assertTrue
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; + import NAMESPACE ; import static NAMESPACE ; <nb> public class Indices implements IndexManagement { public void optimizeIndex ( String index ) { SINGLE - OptimizeRequest or = new OptimizeRequest ( index ) ; + fi...
Override global ES request timeout for optimize request
<nb> COMMENT package NAMESPACE ; - import static NAMESPACE ; - import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; - import NAMESPACE ; - import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; impor...
Removed unused imports
<nb> public class TestAbstractPartial extends TestCase { } public void testGetPropertyEquals ( ) throws Throwable { - MockPartial mock = new MockPartial ( ) ; - YearMonthDay ymd = new YearMonthDay ( NUMBER0 , NUMBER1 , NUMBER2 , BuddhistChronology . getInstance ( ) ) ; - MockProperty0 prop0 = new MockProp...
Remove unecessary use of YearMonthDay
<nb> public class PreferencesFrame { . addGap ( BORDER ) ) ; - layout . linkSize ( fontSizeField , consoleFontSizeField ) ; SINGLE - layout . setVerticalGroup ( layout . createSequentialGroup ( ) . addGap ( BORDER ) . addComponent ( sketchbookLocationLabel )
Restored the nonResizable nature of Font Size Field
<nb> public class SubscriptionAnnotationUtilsTest extends TestCase { public void testUnsubscribeAllAnnotated ( ) { AnnotationTest annotationTest = new AnnotationTest ( ) ; SubscriptionAnnotationUtils . unsubscribeAllAnnotated ( annotationTest ) ; - assertEquals ( true , annotationTest . testVariable . unsubscri...
Add more annotation tests
<nb> COMMENT package NAMESPACE ; - import NAMESPACE ; - import NAMESPACE ; + import NAMESPACE ; + import NAMESPACE ; + import NAMESPACE ; + import NAMESPACE ; + import NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> import NAMESPACE ; import NAMESPACE ; impo...
Removed unused imports
<nb> public class WordPressDB { returnValue = updateWPComCredentials ( blog . getUsername ( ) , blog . getPassword ( ) ) ; } + updateCurrentBlog ( blog ) ; + return ( returnValue ) ; } <nb> public class WordPressDB { public boolean hasAnyJetpackBlogs ( ) { return SqlUtils . boolForQuery ( db , STR...
Updating current blog if they are the same
<nb> public class AllKindOfValuesCommandsTest extends JedisCommandTestBase { } @ test + public void renameOldAndNewAreTheSame ( ) { + jedis . set ( STRING0 , STRING1 ) ; + jedis . rename ( STRING0 , STRING0 ) ; + + SINGLE + jedis . set ( bfoo , bbar ) ; + jedis . rename ( bfoo , bfoo ) ; + } + ...
Add accidentally removed test
<nb> public abstract class TransportAction < Request extends ActionRequest , Response ex try { doExecute ( request , listener ) ; } catch ( Exception e ) { + logger . trace ( STRING0 , e ) ; listener . onFailure ( e ) ; } }
Added trace log statement to catch stacktraces
<nb> - package NAMESPACE ; + package NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> - package NAMESPACE ; + package NAMESPACE ; import NAMESPACE ; import NAMESPACE ;
Fixed incorrect package declarations in sample projects
<nb> public final class Calendar { COMMENT COMMENT COMMENT - COMMENT COMMENT - public interface SyncColumns extends CalendarSyncColumns { + protected interface SyncColumns extends CalendarSyncColumns { COMMENT COMMENT COMMENT <nb> public final class Calendar { COMMENT COMMENT - COMMENT +...
Remove hide on SyncColumns make them protected
<nb> class ZoomManager { } public boolean isFixedLengthAnimationInProgress ( ) { - return mZoomScale != NUMBER0 ; + return mZoomScale != NUMBER0 || mInHWAcceleratedZoom ; } public void refreshZoomScale ( boolean reflowText ) {
Prevent intermediate scale updates from being sent to WebKit while zooming
<nb> class SubversionHistoryParser implements HistoryParser , Executor . StreamHandler { COMMENT COMMENT COMMENT - @ override public History parse ( File file , Repository repos ) throws HistoryException { initSaxParser ( ) ; handler = new Handler ( repos . getDirectoryName ( ) ,
JDK build target fix remove override annotation
<nb> public abstract class DataSupport { COMMENT COMMENT public static synchronized int delete ( Class < ? > modelClass , long id ) { - DeleteHandler deleteHandler = new DeleteHandler ( Connector . getDatabase ( ) ) ; - return deleteHandler . onDelete ( modelClass , id ) ; + int rowsAffected = NUMBER0 ; +...
add transaction on static delete method
<nb> public class NotificationStackScrollLayout extends ViewGroup SINGLE getOverlay ( ) . add ( child ) ; } + + SINGLE + child . setClipBounds ( null ) ; } COMMENT
Fixed a bug where the clipRect was not correctly reset
<nb> import NAMESPACE ; COMMENT public class JdbcLeakPrevention { - COMMENT - COMMENT - COMMENT - COMMENT - private static final String JDBC_ODBC_BRIDGE_DRIVER = - STRING0 ; - public List < String > clearJdbcDriverRegistrations ( ) throws SQLException { List < String > driverNames = new ArrayLis...
Only unload JDBC drivers this web app loaded
<nb> public abstract class JBIterable < E > implements Iterable < E > { } COMMENT + COMMENT + COMMENT + @ notnull + public static < E > JBIterable < E > of ( @ nullable E element ) { + return element == null ? JBIterable . < E > empty ( ) : from ( Collections . singletonList ( element ) ) ; + } + ...
introduce single param null aware of item
<nb> public enum ClusterMessage return STRING0 + leave ; } - return STRING1 + winner + STRING2 + roleWon ; + if ( roleWon != null ) + return STRING1 + winner + STRING2 + roleWon ; + else + return STRING3 + loser + STRING2 + roleWon ; } } <nb> public enum ElectionState SINGLE ClusterMessage ....
Fixed unelection bug
<nb> public class PyRemoteLibrariesNode extends PsiDirectoryNode { @ nullable public static PyRemoteLibrariesNode create ( @ notnull Project project , @ notnull Sdk sdk , ViewSettings settings ) { - final VirtualFile remoteLibrary = PySdkUtil . findAnyRemoteLibrary ( sdk ) ; + VirtualFile remoteLibrary = PySd...
Fix assertion exception showing egg libraries for remote interpreter
<nb> public class Recognition { public static final int HINT_CONTEXT_UNKNOWN = NUMBER0 ; public static final int HINT_CONTEXT_VOICE_SEARCH_HELP = NUMBER1 ; public static final int HINT_CONTEXT_CAR_HOME = NUMBER2 ; + public static final int HINT_CONTEXT_LAUNCHER = NUMBER3 ; private Recognition ( ) { } SINGLE...
Add a voice search hint context for the launcher
<nb> package NAMESPACE ; import NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> public class AlterTableAddColumnAnalyzer extends DefaultTraversalVisitor < AddColu statement . table ( ) . ident ( ) , statement . table ( ) , analysisMetaData , analysis . pa...
avoid ColumnIdent allocation in AlterTableAddColumnAnalyzer
<nb> public class TextView extends View implements ViewTreeObserver . OnPreDrawListener notifyViewAccessibilityStateChangedIfNeeded ( AccessibilityEvent . CONTENT_CHANGE_TYPE_UNDEFINED ) ; } + + SINGLE + SINGLE + mTextDir = getTextDirectionHeuristic ( ) ; } COMMENT
setTransformationMethod should reset mTextDir
<nb> public class PropertiesCallbackHandler implements Service < DomainCallbackHandler > long fileLastModified = propertiesFile . lastModified ( ) ; boolean loadReallyRequired = userProperties == null || fileUpdated != fileLastModified ; if ( loadReallyRequired ) { - ROOT_LOGGER . debugf ( STRING0 , propertiesF...
Minor logging fix
<nb> public class SSTableExportTest extends SchemaLoader ColumnFamily cfamily = ColumnFamily . create ( STRING0 , STRING1 ) ; SSTableWriter writer = new SSTableWriter ( tempSS . getPath ( ) , NUMBER0 ) ; - int nowInSec = ( int ) ( System . currentTimeMillis ( ) / NUMBER1 ) ; + int nowInSec = ( int ) ( System ...
make sure expiring column lives for duration of test
<nb> public class DefaultTestHttpClient implements TestHttpClient { @ override public Response head ( String path ) { + preRequest ( ) ; response = request . head ( toAbsolute ( path ) ) ; return postRequest ( ) ; }
Add missing preRequest
<nb> package NAMESPACE ; + import NAMESPACE ; + import NAMESPACE ; + + import static NAMESPACE ; + COMMENT + @ qualifier @ retention ( RUNTIME ) public @ interface ClientId { }
Add missing annotations for ClientId
<nb> public class AutoCleanupExtension extends AbstractAnnotationDrivenExtension < Auto @ override public void visitSpec ( SpecInfo spec ) { - sharedFieldInterceptor . install ( spec . getBottomSpec ( ) . getCleanupSpecMethod ( ) ) ; - instanceFieldInterceptor . install ( spec . getBottomSpec ( ) . getCleanup...
undid last commit
<nb> package NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; - import NAMESPACE ; - import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ;
Fix CE compilation
<nb> class ChangeVariableTypeToRhsTypePredicate implements PsiElementPredicate { return false ; } final PsiClassType initializerClassType = ( PsiClassType ) initializerType ; - final PsiClass initializerClass = initializerClassType . resolve ( ) ; + PsiClass initializerClass = initializerClassType . resolve (...
do not suggest anonymous type
<nb> - package NAMESPACE ; + package NAMESPACE ; import NAMESPACE ; import NAMESPACE ;
Moved AndResultSetTest to right package
<nb> public class IndexMetaDataExtractor { columnProperties . get ( STRING0 ) . equals ( STRING1 ) ) { boolean dynamic = columnProperties . get ( STRING2 ) == null || - ! columnProperties . get ( STRING2 ) . equals ( STRING3 ) || - columnProperties . get ( STRING2 ) . equals ( false ) || - Booleans . isExpl...
detect dynamic nature of column correctly
<nb> package NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> public class TrustManager { COMMENT COMMENT COMMENT + COMMENT + COMMENT COMMENT COMMENT COMMENT + @ requirespermission ( Manifest . pe...
Protect TrustManager setDeviceLockedForUser with permission
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> public abstract class TabbedLanguageCodeStylePanel extends CodeStyleAbstractPane LanguageCodeStyleSettingsProvider provider = LanguageCode...
Don t show Spaces Blank Lines Wrapping and Braces tabs if a corresponding code sample isn t provided
<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 N...
vcs log fix filtering branches panel by root
<nb> public class DataReaderSun1_6_0G1 extends AbstractDataReaderSun { } } } catch ( Exception pe ) { - if ( LOG . isLoggable ( Level . WARNING ) ) LOG . log ( Level . WARNING , pe . getMessage ( ) , pe ) ; + if ( LOG . isLoggable ( Level . WARNING ) ) LOG . log ( Level . WARNING , pe . getMessage ( ) ) ; i...
remove stack trace output on WARNING log messages
<nb> public class MapViewTrackingUtilities implements OsmAndLocationListener , IMapLoc @ override public void updateLocation ( Location location ) { showViewAngle = false ; - locationProvider = location . getProvider ( ) ; + if ( location != null ) { + locationProvider = location . getProvider ( ) ; + } ...
Fix crash at MapViewTrackingUtilities
<nb> import NAMESPACE ; public class ContextCheckerTest extends TestCase { + COMMENT @ test public void testCheckDataSink ( ) { } + COMMENT + COMMENT @ test public void testCheckSingleInputContract ( ) { } + COMMENT + COMMENT @ test public void testCheckDualInputContract ( ) { ...
commented out incomplete tests from ContextCheckerTest
<nb> SINGLE SINGLE SINGLE + SINGLE + SINGLE + package NAMESPACE ; <nb> public class SiteNode extends DefaultMutableTreeNode { } SINGLE - if ( ! getPastHistoryReference ( ) . contains ( historyReference ) ) { + if ( ! getPastHistoryReference ( ) . contains ( getHistoryReference ( ) ) ) { ...
Fixed an issue in SiteNode setHistoryReference HistoryReference that led to multiple occurrences of same HistoryReference s in the pastHistoryList
<nb> public class ContextComputationProcessor { } else if ( expression instanceof PsiLanguageInjectionHost && ( firstChild = expression . getFirstChild ( ) ) instanceof PsiJavaToken && - ( ( PsiJavaToken ) firstChild ) . getTokenType ( ) == JavaTokenType . STRING_LITERAL ) { + ( ( ( PsiJavaToken ) firstChild ...
inject into char literals
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; - import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> import NAMESPACE ; import static NAMESPACE ; - @ runwith ( HazelcastSerialClassRunner . class ) @ category ( NightlyTest . class...
Terminate does not guarantee data safety