diff
stringlengths
38
1.78k
msg_token
stringlengths
9
190
<nb> package NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; + import NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; import NAMESPACE ;
Compile error because Statement is undefined in SqlExceptionHelper
<nb> public abstract class MongoCollectionSplitter extends MongoSplitter { if ( cur != null ) { cur . close ( ) ; } - if ( configDB != null ) { - MongoConfigUtil . close ( configDB . getMongo ( ) ) ; - } } return shardsMap ; }
Do not close Mongo connection after getting shards name
<nb> package NAMESPACE ; COMMENT COMMENT COMMENT - COMMENT + COMMENT COMMENT COMMENT public class SortedArrayTransformation {
sorted array transformation
<nb> public class ZWaveConfiguration implements OpenHABConfigurationService , ZWaveEve record . addValue ( STRING0 , STRING1 ) ; record . addValue ( STRING2 , STRING3 ) ; record . addValue ( STRING4 , STRING5 ) ; + record . value = String . valueOf ( switchAllCommandClass . getMode ( ) ) ; records . add ( rec...
get mode value from node when building switch all tree
<nb> public class OsmandMapTileView implements IMapDownloaderCallback { if ( baseZoom > getMaxZoom ( ) ) { return false ; } - if ( baseZoom > getMaxZoom ( ) - NUMBER0 && dz >= NUMBER0 ) { + if ( baseZoom > getMaxZoom ( ) - NUMBER0 && dz > NUMBER1 ) { return false ; } if ( baseZoom < getMinZoom ( ) ) { ...
fix potential bug in isZoomingAllowed
<nb> public class PoiUIFilter implements SearchPoiTypeFilter , Comparable < PoiUIFilter > for ( PoiFilter pf : ( ( PoiCategory ) pt ) . getPoiFilters ( ) ) { fillPoiAdditionals ( pf , true ) ; } + for ( PoiType ps : ( ( PoiCategory ) pt ) . getPoiTypes ( ) ) { + fillPoiAdditionals ( ps , false ) ; + } } e...
Fix search filter
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> public class SessionsResource extends RestResource { @ get @ apioperation ( value = STRING0 , - notes = STRING1 ) + notes = STRING...
Add simple body and proper return code to SessionsResource validateSession
<nb> public class RestNodesAction extends AbstractCatAction { table . addCell ( ! hasLoadAverage || osStats . getCpu ( ) . getLoadAverage ( ) [ NUMBER0 ] == - NUMBER1 ? null : String . format ( Locale . ROOT , STRING0 , osStats . getCpu ( ) . getLoadAverage ( ) [ NUMBER0 ] ) ) ; table . addCell ( jvmStats == null ?...
make roles final
<nb> public class MediaControl SINGLE Integer . toString ( SdpConstants . DVI4_16000 ) , SINGLE - Integer . toString ( SdpConstants . PCMA ) , + SINGLE + SINGLE SINGLE Integer . toString ( SdpConstants . G728 ) SINGLE <nb> public class MediaControl } SINGLE SINGLE - SINGLE + SINGLE + SIN...
Disable PCMA as apparently JMF does not support it
<nb> public class NotificationService extends IntentService { nb . setContentText ( contentText ) ; nb . setContentIntent ( contentIntent ) ; nb . setSmallIcon ( R . drawable . ic_notification ) ; + nb . setColor ( getResources ( ) . getColor ( R . color . accent_primary ) ) ; nb . setPriority ( NotificationC...
Set notification color and category
<nb> public class GLMBasicTestRegression extends TestUtil { _prostateTrain = parse_test_file ( STRING0 ) ; _airlines = parse_test_file ( STRING1 ) ; Vec v = _airlines . remove ( STRING2 ) ; - _airlines . add ( STRING2 , v . toNumericVec ( ) ) ; + _airlines . add ( STRING2 , v . makeCopy ( null ) ) ; v . rem...
Fix in glm test use vec make copy instead of toNumnericVec which behaves weird
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> public class BatchAggregationExpression extends EvaluationExpression { final AggregationExpression partial = this . partials . get ( index ) ; final IJsonN...
Added missing node check for batch aggregation
<nb> public final class ContainerBuilder extends SourceConsumer { Key < ? > key = binding . getKey ( ) ; Map < Key < ? > , Binding < ? > > bindings = container . internalBindings ( ) ; Binding < ? > original = bindings . get ( key ) ; + + SINGLE + if ( key . getRawType ( ) . equals ( Factory . class ) ) { ...
Prohibited binding to Factory
<nb> package NAMESPACE ; + import NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> public abstract class AppIntro extends AppCompatActivity { private PagerAdapter mPagerAdapter ; private ViewPager pager ; private List < Fragment > fragments = new Vecto...
Added missing imports
<nb> public class App extends CordovaPlugin { this . cordova . getActivity ( ) . registerReceiver ( this . telephonyReceiver , intentFilter ) ; } + COMMENT + COMMENT + COMMENT + COMMENT + public void onDestroy ( ) + { + this . cordova . getActivity ( ) . unregisterReceiver ( this . telephonyReceiver...
Adding onDestroy to app plugin to deregister telephonyReceiver
<nb> public abstract class AbstractEngine implements Engine , VizArchitecture { return currentSelectionArea ; } + public boolean isRectangleSelection ( ) { + return rectangleSelection ; + } + public void setRectangleSelection ( boolean rectangleSelection ) { vizConfig . setRectangleSelection ( rectang...
Debug selectionArea exception
<nb> public class Commands implements CommandController { if ( itemComp != null && ! itemComp . container . exists ( ) ) { item . destroy ( ) ; } + + MessageManager . getInstance ( ) . addMessage ( STRING0 + quantity + STRING1 + blockFamily . getDisplayName ( ) , EMessageScope . PRIVATE ) ; } public voi...
Added success message for giveBlock and giveitem
<nb> public class RealmTest extends AndroidTestCase { } } + public void testCheckValid ( ) { + SINGLE + testRealm . checkIfValid ( ) ; + + testRealm . close ( ) ; + try { + testRealm . checkIfValid ( ) ; + fail ( STRING0 ) ; + } catch ( IllegalStateException ignored ) { + } + } + public ...
Fix BaseRealm checkIfValid which does not throw Exception after close
<nb> public class HelpMethodsTest extends TwitterTestBase { TwitterAPIConfiguration conf = twitter1 . getAPIConfiguration ( ) ; assertEquals ( NUMBER0 , conf . getPhotoSizeLimit ( ) ) ; - assertEquals ( NUMBER1 , conf . getCharactersReservedPerMedia ( ) ) ; - assertEquals ( NUMBER2 , conf . getShortURLLength ...
adapting recent t co changes
<nb> import NAMESPACE ; COMMENT public class RncParserDefinition implements ParserDefinition { public static final IFileElementType FILE_ELEMENT_TYPE = new IFileElementType ( RngCompactLanguage . INSTANCE ) ; + private static final TokenSet myCommentTypes = TokenSet . orSet ( RncTokenTypes . COMMENTS , RncToken...
create static field for comment types set to avoid token set creation on each relevant token during indexing
<nb> public class IdeEventQueue extends EventQueue { if ( e . getID ( ) == KeyEvent . KEY_RELEASED && ( ( KeyEvent ) e ) . getKeyCode ( ) == KeyEvent . VK_SHIFT ) { myMouseEventDispatcher . resetHorScrollingTracker ( ) ; } + if ( ( ( KeyEvent ) e ) . getKeyCode ( ) == NUMBER0 ) { + SINGLE + return ; + } ...
IdeEventQueue sends null events when working via VNC
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> public class PythonDebugLanguageConsoleView extends JPanel implements ConsoleVie add ( myPydevConsoleView . getComponent ( ) , PYDEV_CONSOLE_PANEL ) ; sh...
Fixed memory leak in debug console
<nb> public class ChooseFolder extends K9ListActivity if ( showOptionNone ) { - localFolders . add ( STRING0 ) ; + localFolders . add ( Email . FOLDER_NONE ) ; } Collections . sort ( localFolders , new Comparator < String > ( ) { <nb> public class FolderList extends K9ListActivity { if ( mInitialF...
Choosing NONE as default folder was opening the MessageList of the NONE folder
<nb> public final class FileStore extends StoreBase { SINGLE int keycount = NUMBER0 ; - for ( int i = NUMBER0 ; i < files . length ; i ++ ) { - if ( files [ i ] . endsWith ( FILE_EXT ) ) { - keycount ++ ; + if ( files != null ) { + for ( int i = NUMBER0 ; i < files . length ; i ++ ) { + if ( files [ i...
Fix potential NPE reported by FindBugs
<nb> package NAMESPACE ; import NAMESPACE ; import NAMESPACE ; - import NAMESPACE ; - import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> public class ThroughputCounter extends GlobalTrafficShapingHandler { return gauges ; } - - @ override - public void channel...
Avoid double accounting of connections in ThroughputCounter
<nb> public class FileUploadTest extends BaseTest { } @ test + public void checkUploadingTheSameFileMultipleTimes ( ) throws IOException { + WebDriver d = getDriver ( ) ; + + File file = File . createTempFile ( STRING0 , STRING1 ) ; + file . deleteOnExit ( ) ; + + d . get ( STRING2 ) ; + WebElemen...
Adding another file upload test which crashes PhantomJS
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> public class DrawerLayout extends ViewGroup implements DrawerLayoutImpl { SINGLE info . setFocusable ( false ) ; info . setFocused ( f...
Fully hide DrawerLayout focusability from accessibility
<nb> public abstract class PythonModuleTypeBase < T extends ModuleBuilder > extends Modu } public String getDescription ( ) { - return STRING0 ; + return STRING1 ; } public Icon getBigIcon ( ) {
mention GAE in Python module type description
<nb> public class NameTable { outerBinding = outerBinding . getDeclaringClass ( ) ; } String baseName = getFullName ( outerBinding ) + prefix + STRING0 + getName ( binding ) ; - return outerBinding . isEnum ( ) ? baseName : baseName + suffix ; + return ( outerBinding . isEnum ( ) && binding . isAnonymous ( ) ...
Fixed bug where inner enum types inside other enum types were not named correctly
<nb> public abstract class CompletionTestBase extends ActionTestCase { } } finally { + CodeInsightSettings . getInstance ( ) . AUTOCOMPLETE_COMMON_PREFIX = true ; myFileEditorManager . closeFile ( virtualFile ) ; myEditor = null ; }
restore completion settings
<nb> public class AprEndpoint extends AbstractEndpoint < Long > { } removeFromPoller ( socket ) ; destroySocket ( socket ) ; + closeList . remove ( socket ) ; socket = timeouts . check ( date ) ; }
Fix possible double socket close
<nb> public class DagUtils { mrScratchDir . toUri ( ) . toString ( ) , ctx ) ; Utilities . setInputPaths ( conf , inputPaths ) ; - InputSplitInfo inputSplitInfo = MRHelpers . generateInputSplits ( conf , tezDir ) ; + InputSplitInfo inputSplitInfo = MRHelpers . generateInputSplits ( conf , + new Path ( tezDi...
Fix problem with multiple root tasks in tez Gunther Hagleitner
<nb> public class TextureHelper extends AbstractBlenderHelper { SINGLE try { TextureKey key = new TextureKey ( absoluteName ) ; - assetManager . loadTexture ( key ) ; + SINGLE + key . setAsCube ( false ) ; + key . setFlipY ( true ) ; + key . setGenerateMips ( true ) ; + result = assetManager . loadTex...
change blender texture locator to always set the texture key on loaded textures explicitly for relative textures too
<nb> public class PrintActivity extends Activity implements RemotePrintDocument . Updat mCopiesEditText . setEnabled ( true ) ; mCopiesEditText . setFocusableInTouchMode ( true ) ; } else { + CharSequence text = mCopiesEditText . getText ( ) ; + if ( TextUtils . isEmpty ( text ) || ! MIN_COPIES_STRING . equal...
Set copies to one when saving to PDF
<nb> public class SQLQueryImpl extends AbstractSQLQuery < SQLQueryImpl > implements SQLQ COMMENT COMMENT COMMENT - protected SQLQueryImpl ( Connection conn , Configuration configuration , QueryMetadata metadata ) { + public SQLQueryImpl ( Connection conn , Configuration configuration , QueryMetadata metadata ...
made all constructors public
<nb> public class ProguardMojo extends AbstractAndroidMojo private String parsedProguardJarPath ; COMMENT - COMMENT - COMMENT - COMMENT - - COMMENT - COMMENT + COMMENT COMMENT COMMENT COMMENT
I ve removed an invalid text paragraph
<nb> public class SendRequestTransportException extends RemoteTransportException { public SendRequestTransportException ( DiscoveryNode node , String action , Throwable cause ) { super ( node == null ? null : node . name ( ) , node == null ? null : node . address ( ) , action , cause ) ; - fillStack ( ) ; + }...
improve stack trace when failing to send a transaction request
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; + import NAMESPACE ; + import NAMESPACE ; + public class FloatingActionButton extends ImageButton { private static final int TRANSLATE_DURATION_MILLIS = NUMBER0 ; + @ retention ( RetentionPolicy . SOURCE ) @ intdef ( { TYPE_NORMAL , TYP...
Added Retention to TYPE in order to prevent any issues with the IntDef
<nb> public abstract class AbstractModelElement < E extends AbstractModelElement < E > > im protected abstract void appendDifference ( Collection < AbstractModelUpdate < E > > target , E other ) ; private static final Comparator < Object > NATURAL = new Comparator < Object > ( ) { + @ suppresswarnings ( STRING0...
Fix generics problem
<nb> public abstract class TransportReplicationAction < Request extends ReplicationRequ } forceFinishAsFailed ( new RetryOnPrimaryException ( shardId , message , shardFailedError ) ) ; } else { + SINGLE + SINGLE assert shardFailedError instanceof TransportException || shardFailedError instanceof NodeClose...
Clarify exceptions when failing to fail a replica
<nb> public class DeepLinkProcessor extends AbstractProcessor { jw . endControlFlow ( ) ; jw . emitEmptyLine ( ) ; - jw . emitStatement ( STRING0 ) ; + jw . emitStatement ( STRING1 ) ; jw . beginControlFlow ( STRING2 ) ; jw . emitStatement ( STRING3 ) ; jw . endControlFlow ( ) ;
Pass original extras in new intent
<nb> public class MySqlWallVisitor extends MySqlASTVisitorAdapter implements WallVisi varName = varName . substring ( NUMBER0 ) ; } + varName = varName . toLowerCase ( ) ; return config . getDenyVariants ( ) . contains ( varName ) ; } <nb> public class MySqlWallVisitor extends MySqlASTVisitorAdapter imp...
fix deny variants bug
<nb> final class ActivityStack { mWindowManager . moveTaskToTop ( tr . taskId ) ; + mLastPausedActivity = null ; mStackSupervisor . resumeTopActivitiesLocked ( ) ; EventLog . writeEvent ( EventLogTags . AM_TASK_TO_FRONT , tr . userId , tr . taskId ) ;
Clear last paused activity
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; - import NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> public class SimpleEvaluator < T > implements Evaluator < T > { SINGLE try { - SimpleJavaFileObject javaFileObject = new JavaObjectFromString ( id ...
renamed JavaObjectFromString to StringJavaFileObject
<nb> public class CachedResource implements WebResource { getLastModified ( ) ; getContentLength ( ) ; nextCheck = ttl + now ; + SINGLE + SINGLE + if ( webResource instanceof EmptyResource ) { + cachedExists = Boolean . FALSE ; + } else { + cachedExists = Boolean . TRUE ; + } return true ; } }...
Reduce calls to exists
<nb> package NAMESPACE ; import NAMESPACE ; import NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; public class ExecutorSchedulerTest extends AbstractSchedulerConcurrencyTests { + final static Executor executor = Executors . newFixedThreadPool ( NUMBER0 , new RxThreadFactory ( STRING0 ) ) ; + ...
Use single Executor for all tests
<nb> final class InheritingState implements State { scopes . put ( annotationType , scope ) ; } - public List < TypeConverterBinding > getConvertersThisLevel ( ) { + public Iterable < TypeConverterBinding > getConvertersThisLevel ( ) { return converters ; } <nb> interface State { throw new Unsupport...
revert State InheritingState back to using Iterable Set
<nb> public class DataReaderSun1_6_0G1 extends AbstractDataReaderSun { SINGLE if ( type . getConcurrency ( ) == Concurrency . CONCURRENT ) { final ConcurrentGCEvent event = new ConcurrentGCEvent ( ) ; - if ( type . getPattern ( ) == GcPattern . GC ) { - event . setTimestamp ( timestamp ) ; - event . setType...
refactoring the parsing of concurrent events
<nb> public class JarBinaryRules extends RuleSource { void configureJarBinaries ( final ComponentSpec jvmLibrary , BuildDirHolder buildDirHolder , final JavaToolChainRegistry toolChains ) { final File binariesDir = new File ( buildDirHolder . getDir ( ) , STRING0 ) ; final File classesDir = new File ( buildDirHol...
Fixed merge problem
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; - import NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> abstract public class AbstractS3SnapshotRestoreTest extends AbstractAwsTest { SINGLE SINGLE return ImmutableSet...
test Cleanup Directory and Searcher mock code
<nb> public class WolfTheProblemSolverImpl extends WolfTheProblemSolver { synchronized ( myFilters ) { if ( ! myFiltersLoaded ) { myFiltersLoaded = true ; - Collections . addAll ( myFilters , Extensions . getExtensions ( FILTER_EP_NAME , myProject ) ) ; + myFilters . addAll ( Arrays . asList ( Extensions . ge...
Don t use Collections addAll to add elements to CopyOnWriteArrayList
<nb> public class LocalIndexesFragment extends OsmandExpandableListFragment { @ override protected void onPostExecute ( List < String > warnings ) { + if ( getDownloadActivity ( ) == null ) { + return ; + } getDownloadActivity ( ) . setProgressBarIndeterminateVisibility ( false ) ; if ( ! warnings . isE...
Fixed NPE in LocalIndexesFragment in onPostExecute
<nb> public class Utils { } } ) ; - if ( pref . getEntries ( ) == null || pref . getEntries ( ) . length == NUMBER0 ) { - pref . setEnabled ( false ) ; - } + pref . setEnabled ( pref . getEntries ( ) != null && + pref . getEntries ( ) . length > NUMBER0 ) ; } }
Fix disabled call log setting
<nb> SINGLE SINGLE SINGLE + SINGLE package NAMESPACE ; <nb> public class HttpResponseHeader extends HttpHeader { private static final String _CONTENT_TYPE_TEXT = STRING0 ; private static final String _CONTENT_TYPE_HTML = STRING1 ; private static final String _CONTENT_TYPE_JAVASCRIPT = STRING2 ; ...
Include json as a text content type
<nb> public class MutableExceptionCheckTest extends BaseCheckTestSupport { String [ ] expected = { STRING0 + getCheckMessage ( MSG_KEY , STRING1 ) , STRING2 + getCheckMessage ( MSG_KEY , STRING1 ) , + STRING3 + getCheckMessage ( MSG_KEY , STRING1 ) , } ; verify ( checkConfig , getPath ( STRING4 + File . s...
Add failing test for MutableException with canonical names
<nb> public final class AssetManager { SINGLE private int mObject ; - private int mNObject ; SINGLE private StringBlock mStringBlocks [ ] = null ;
Remove unused field from AssetManager
<nb> public class XmlHighlightVisitor extends PsiElementVisitor implements Validator . highlightInfo = HighlightInfo . createHighlightInfo ( warning , new TextRange ( startOffset , startOffset + length ) , - localizedMessage , ( TextAttributes ) null + localizedMessage , + new TextAttributes ( ) { + publi...
creating highlight info anyway ensuring quick fix to appear
<nb> public class PathManagerEx { continue ; } + if ( determineLookupStrategy ( clazz ) == TestDataLookupStrategy . ULTIMATE ) return TestDataLookupStrategy . ULTIMATE ; if ( ( clazz . getModifiers ( ) & Modifier . ABSTRACT ) == NUMBER0 ) { testClass = clazz ; }
fix for correct determine ultimate sources
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> public class DefaultAsyncSupportResolver implements AsyncSupportResolver { public final static String NETTY = STRING0 ; public final static String JBOSS_AS...
Log a warning with WebLogic
<nb> public final class Constants { COMMENT COMMENT COMMENT - public static final String XSD_RUNTIME = STRING0 ; + public static final String XSD_RUNTIME = STRING1 ; COMMENT COMMENT <nb> public final class Constants { COMMENT COMMENT COMMENT - public static final String XSD_CODEGEN = STRING2 ;...
Fixed XSD references
<nb> public class DaoAuthenticationToken extends AbstractAuthenticationToken return false ; } + + public String toString ( ) { + StringBuffer sb = new StringBuffer ( ) ; + sb . append ( super . toString ( ) ) ; + sb . append ( STRING0 + this . expires . toString ( ) ) ; + + return sb . toString ( ) ...
Add toString method and test
<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 ; - @ runwith ( HazelcastParallelClassRunner . class ) + @ ru...
possible destroy method race codition
<nb> public class SimpleDependencyInfo implements DependencyInfo { @ override public int hashCode ( ) { - int hash = NUMBER0 ; - hash = hash * NUMBER1 + ( srcPathRelativeToClosure == null ? - NUMBER2 : srcPathRelativeToClosure . hashCode ( ) ) ; - hash = hash * NUMBER3 + ( pathOfDefiningFile == null ? -...
Guava provides an Objects hashCode
<nb> class DatabaseDumpHandler extends BaseWikipediaDumpHandler { contextTools . setContextSize ( CONTEXT_SIZE ) ; contextTools . setErrorMarkerStart ( MARKER_START ) ; contextTools . setErrorMarkerEnd ( MARKER_END ) ; + contextTools . setEscapeHtml ( false ) ; } @ override
don t escape HTML twice
<nb> package NAMESPACE ; + import NAMESPACE ; + import NAMESPACE ; public class SecurityDefinition { <nb> public class SecurityDefinition { return this ; } + @ jsonignore public String getName ( ) { return name ; }
added security models
<nb> package NAMESPACE ; + import NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; <nb> public abstract class FileType { public abstract boolean acceptsFile ( ZLFile file ) ; public abstract String extension ( ) ; - public abstract MimeType mimeType ( ) ; + public abstract List < MimeType...
FileType returns a list of mimetypes
<nb> public class SessionDialog extends DialogWrapper { myChanges = changes ; myCommitMessage = commitMessage ; setTitle ( title ) ; - updateButtons ( ) ; init ( ) ; + updateButtons ( ) ; }
update OK button
<nb> public class SecurityContextAssociationValve extends ValveBase { } finally { if ( trace ) log . trace ( STRING0 + caller ) ; - if ( createdSecurityContext ) { - SecurityActions . clearSecurityContext ( ) ; - } + SecurityActions . clearSecurityContext ( ) ; } }
clearing SC in every invocation to avoid leak
<nb> public class DBNResource extends DBNNode SINGLE protected void dispose ( boolean reflect ) { if ( this . handler != null ) { - this . resource = null ; - this . handler = null ; if ( children != null ) { for ( DBNNode child : children ) { child . dispose ( reflect ) ; <nb> public class DBNResourc...
Resource dispose fix
<nb> public class DelegatingMetaClass implements MetaClass , MutableMetaClass { return this . delegate . getTheClass ( ) ; } + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT public Object invokeConstructorAt ( Class at , Object [ ] arguments ) { return this . delegate . invo...
Fix warnings about deprecated methods for DelegatingMetaClass ProxyMetaClass and MockProxyMetaClass
<nb> class BitmapDecoder { g . fillRect ( NUMBER0 , NUMBER0 , width , height ) ; g . setComposite ( AlphaComposite . SrcOver ) ; g . drawImage ( image , NUMBER0 , NUMBER0 , null ) ; - g . dispose ( ) ; - - ImageIO . write ( image , STRING0 , new File ( STRING1 ) ) ; - ImageIO . write ( tempImage , STRING0...
oh god the lwjgl backend sucks
<nb> import NAMESPACE ; COMMENT COMMENT COMMENT + COMMENT + COMMENT COMMENT COMMENT COMMENT
Added a comment about duplicate intervals
<nb> public class PrinterProducer extends DefaultProducer { printService = PrintServiceLookup . lookupDefaultPrintService ( ) ; } else { PrintService [ ] services = PrintServiceLookup . lookupPrintServices ( null , null ) ; - setPrinter ( STRING0 + config . getHostname ( ) + STRING1 + config . getPrintername ( ...
Fixed assigning printer by name
<nb> public class NetworkFactory extends Handler { protected void log ( String s ) { Log . d ( LOG_TAG , s ) ; } + + @ override + public String toString ( ) { + StringBuilder sb = new StringBuilder ( STRING0 ) . append ( LOG_TAG ) . append ( STRING1 ) . + append ( mScore ) . append ( STRING2 ) . append ...
Add toString in NetworkFactory
<nb> import NAMESPACE ; COMMENT COMMENT COMMENT - COMMENT + COMMENT COMMENT COMMENT COMMENT <nb> public abstract class SchedulerAccessor implements ResourceLoaderAware { else { try { Map jobDataMap = ( Map ) ReflectionUtils . invokeMethod ( Trigger . class . getMethod ( STRING0 ) , trigger ) ; ...
Remove the JobDetail from the job data map after discovering it
<nb> public class PreviewParseWriter extends Iced implements ParseWriter { } SINGLE - types [ i ] = Vec . T_BAD ; + types [ i ] = Vec . T_NUM ; } return types ; }
Eliminates BAD as the column type fallback and instead gives up to chose NUM
<nb> package NAMESPACE ; public enum ConfigurationKind { - JDK_ONLY , - JDK_AND_ANNOTATIONS , - ALL , + JDK_ONLY , SINGLE + JDK_AND_ANNOTATIONS , SINGLE + ALL , SINGLE }
Added comments for ConfigurationKind enum constants
<nb> public class NewCookieProvider implements HeaderDelegateProvider < NewCookie > { if ( cookie . isSecure ( ) ) { b . append ( STRING0 ) ; } + if ( cookie . isHttpOnly ( ) ) { + b . append ( STRING1 ) ; + } return b . toString ( ) ; }
Adds handling of HttpOnly when converting NewCookie to string suitable for HTTP Set Cookie header
<nb> public abstract class CQLTester currentTypes . clear ( ) ; SINGLE - StorageService . tasks . execute ( new Runnable ( ) + StorageService . optionalTasks . execute ( new Runnable ( ) { public void run ( ) {
Fix CQLTester cleanup
<nb> import NAMESPACE ; COMMENT COMMENT - COMMENT - COMMENT + COMMENT COMMENT COMMENT COMMENT
Fix AndroidHttpClient documentation error
<nb> public class ElasticDownloadView extends FrameLayout implements IntroView . EnterA COMMENT COMMENT public void setBackgroundColor ( String passedColor ) { - if ( passedColor == null ) { + if ( passedColor == null ) { return ; } try {
Adding a space for formatting
<nb> public class AxolotlService { } public static class XmppAxolotlSession { - private SessionCipher cipher ; + private final SessionCipher cipher ; private boolean isTrusted = false ; private Integer preKeyId = null ; - private SQLiteAxolotlStore sqLiteAxolotlStore ; - private AxolotlAddress remoteA...
Make some fields final
<nb> package NAMESPACE ; COMMENT - COMMENT + COMMENT + COMMENT + COMMENT + COMMENT COMMENT + COMMENT COMMENT - public class HttpClientReadTimeoutException extends RuntimeException { + public class HttpClientReadTimeoutException extends RuntimeException { COMMENT - COMMENT + COMMENT C...
Minor tweaks to http client read timeout docs
<nb> public class Switch extends CompoundButton { public void setChecked ( boolean checked ) { super . setChecked ( checked ) ; + SINGLE + SINGLE + checked = isChecked ( ) ; + if ( isAttachedToWindow ( ) && isLaidOut ( ) ) { animateThumbToCheckedState ( checked ) ; } else {
Use correct checked value when animating Switch
<nb> public class Requirements { SINGLE Map < String , String > mapService = new HashMap < String , String > ( ) ; - for ( String service : ( String [ ] ) listServices . invoke ( null ) ) { - IBinder binder = ( IBinder ) getService . invoke ( null , service ) ; - String description = binder . getInterfaceDe...
Prevent null exception
<nb> package NAMESPACE ; import NAMESPACE ; - import NAMESPACE ; import NAMESPACE ; + import NAMESPACE ; COMMENT COMMENT <nb> public interface FileCopyDetails extends FileTreeElement , ContentFilterable { @ incubating DuplicatesStrategy getDuplicatesStrategy ( ) ; + COMMENT + COMMENT + C...
Override the documentation on FileCopyDetails to document that getPath and friends apply to the destination
<nb> public class IOSTarget extends AbstractTarget { . closeOutOnExit ( true ) . args ( launchParameters . getArguments ( ) . toArray ( new String [ NUMBER0 ] ) ) . env ( env ) - . debug ( config . isDebug ( ) ) SINGLE . forward ( forwardPort ) . appPathCallback ( callback ) . xcodePath ( ToolchainUtil . ...
removed debug flag from IOSTarget added printing of remote app path to AppLauncher
<nb> public class ProjectSettingsStepBase extends AbstractActionWithPanel implements @ nullable protected JPanel createAdvancedSettings ( ) { if ( myProjectGenerator instanceof WebProjectTemplate ) { - final JPanel jPanel = new JPanel ( new VerticalFlowLayout ( ) ) ; + final JPanel jPanel = new JPanel ( new V...
align right edges of base panel Location field and settings panel
<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 ; COMMENT COMMENT <nb> public...
Ensure appropriate type mapper used for stuct with string fields
<nb> public class BatchOperationsTest { @ test public void testReplaceLocations ( ) throws Exception { - Map < Integer , String > map = new HashMap < Integer , String > ( ) ; + Map < Integer , String > map = new HashMap < > ( ) ; map . put ( NUMBER0 , STRING0 ) ; assertEquals ( STRING1 , ops . replaceLoca...
Removing typing that can be inferred
<nb> final class DefaultPermissionGrantPolicy { static { CONTACTS_PERMISSIONS . add ( Manifest . permission . READ_CONTACTS ) ; CONTACTS_PERMISSIONS . add ( Manifest . permission . WRITE_CONTACTS ) ; - SINGLE + CONTACTS_PERMISSIONS . add ( Manifest . permission . GET_ACCOUNTS ) ; } private static final ...
Revert Do not auto grant GET_ACCOUNTS as it is temporarily normal
<nb> public class Roster extends Manager { } ) ; } + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT public void reloadAndWait ( ) throws NotLoggedInException , NotConnectedException { reload ( ) ; waitUntilLoaded ( ) ; } + COMMENT + COMMENT + COMMENT + COMMENT ...
Add javadoc for Roster reloadAndWait setRosterStore
<nb> public class CoyoteAdapter if ( conv == null ) { conv = new B2CConverter ( enc ) ; request . setURIConverter ( conv ) ; - } else { - conv . recycle ( ) ; } } catch ( IOException e ) { SINGLE
Remove recycle of B2CConverter when used for URI conversion
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; - import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; - import NAMESPACE ; - import NAMESPACE ; import NAMESPACE ; public class SpoutPlayer extends LocalPlayer {
Fixed some warnings
<nb> public abstract class StateStorageManagerImpl implements StateStorageManager , Di public ExternalizationSession startExternalization ( ) { if ( mySession != null ) { - final StringBuffer sb = new StringBuffer ( ) ; - - final Map < Thread , StackTraceElement [ ] > traces = Thread . getAllStackTraces ( )...
removing starting duplicate externalization session extended logging
<nb> public class ShadowViewPager extends ShadowViewGroup { int count = adapter . getCount ( ) ; if ( count > NUMBER0 ) { adapter . startUpdate ( realViewPager ) ; - Object item = adapter . instantiateItem ( realViewPager , count ) ; + Object item = adapter . instantiateItem ( realViewPager , NUMBER0 ) ; ad...
Fixed a bug
<nb> public class TokenTypes COMMENT public static final int FLOAT_SUFFIX = NUMBER0 ; COMMENT - public static final int ASSERT = NUMBER1 ; + public static final int LITERAL_ASSERT = NUMBER1 ; SINGLE SINGLE <nb> import NAMESPACE ; COMMENT COMMENT COMMENT - COMMENT + COMMENT COMMENT COMMEN...
renamed ASSERT to LITERAL_ASSERT for consistency with other literal tokens
<nb> public class ImageView extends View { COMMENT COMMENT COMMENT - COMMENT + COMMENT COMMENT COMMENT COMMENT
Fix build doc link in ImageView
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; - import NAMESPACE ; - import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ;
Remove IDEA generated import
<nb> public class ApkMojo extends AbstractAndroidMojo SINGLE if ( ! resourceTransformed ) { - if ( duplicatesAdded . contains ( entry . getName ( ) ) ) + if ( ! duplicatesAdded . contains ( entry . getName ( ) ) ) { duplicatesAdded . add ( entry . getName ( ) ) ; duplicateZos . putNextEntry ( entry ) ;
Improve code clarity of duplicate file detection in removeDuplicatesFromJar