diff
stringlengths
38
1.78k
msg_token
stringlengths
9
190
<nb> public class UiInspectorAction extends ToggleAction implements DumbAware { if ( component . isDoubleBuffered ( ) ) { append ( STRING0 , SimpleTextAttributes . GRAYED_ATTRIBUTES ) ; } + componentNode . setText ( toString ( ) ) ; setIcon ( new TwoColorsIcon ( NUMBER0 , component . getForeground ( ) , compo...
set correct text string in the tree cell renderer component
<nb> public class CallMetaDataContext { else { String returnNameToUse = ( StringUtils . hasLength ( meta . getParameterName ( ) ) ? parNameToUse : getFunctionReturnName ( ) ) ; - workParameters . add ( new SqlOutParameter ( returnNameToUse , meta . getSqlType ( ) ) ) ; + workParameters . add ( this . metaData...
Allow cursor returns from SQL functions
<nb> public final class RuleContext extends TargetContext Predicate < RuleClass > warningPredicate = attribute . getAllowedRuleClassesWarningPredicate ( ) ; if ( warningPredicate . apply ( ruleClass ) ) { reportBadPrerequisite ( attribute , prerequisiteTarget . getTargetKind ( ) , prerequisite , - STRING0 + war...
Fix misleading warning for rule dependency
<nb> public final class OAuthAction extends AbstractAction { authorizationUrl = provider . getAuthorizationUrl ( new HttpUserSession ( session ) ) ; } logger . debug ( STRING0 , key , authorizationUrl ) ; - context . getFlowScope ( ) . put ( key , authorizatonUrl ) ; + context . getFlowScope ( ) . put ( key ,...
Fix variable name
<nb> package NAMESPACE ; import NAMESPACE ; import NAMESPACE ; + import NAMESPACE ; public abstract class Utils { public static final int COLOR_BLUE = Color . parseColor ( STRING0 ) ; <nb> public abstract class Utils { return ( int ) ( sp * scale + FLOAT0 ) ; } + public static float mm2px ( Cont...
Added method to convert mm to px
<nb> public class ProvisioningServiceImpl url = url . replace ( STRING0 , ipaddr . getHostAddress ( ) ) ; } + if ( url . indexOf ( STRING1 ) != - NUMBER0 ) + { + String name ; + if ( OSUtils . IS_WINDOWS ) + { + SINGLE + name = System . getenv ( STRING2 ) ; + } + else + { + name = ipaddr . g...
Add computername provisioning property
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> public class TCPNetworkConnection implements NetworkConnection { } public void shutdown ( ) throws IOException { - socket . shutdownOutput ( ) ; - so...
Catch certain exceptions when trying to close socket
<nb> public class DaemonClientInputForwarder implements Stoppable { Action < String > dispatcher = new Action < String > ( ) { public void execute ( String input ) { if ( LOGGER . isDebugEnabled ( ) ) { - LOGGER . debug ( String . format ( STRING0 , input . replace ( STRING1 , STRING2 ) ) ) ; + LOGGER . debug...
Tweaked the debug messages
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> public class Executor { public static File mkdir ( @ notnull String dirName ) { File file = child ( dirName ) ; boolean dirMade = file . mkdir ( ) ; - ...
git tests more diagnostics in assertion
<nb> public class FileContent extends DiffContent { } public static FileContent createFromTempFile ( Project project , String name , String ext , @ notnull byte [ ] content ) throws IOException { - final File tempFile ; - if ( content . length == NUMBER0 ) { - tempFile = FileUtil . createTempFile ( name , S...
diff Fix extension don t treat empty file as text
<nb> public abstract class AbstractInputStreamAnnotationCreator implements Annotation @ override public Annotation createFromFile ( File file ) throws IOException { - return createFromFile ( file . getAbsolutePath ( ) ) ; + return createFromFile ( file . getAbsoluteFile ( ) ) ; } @ override <nb> publi...
Incorporated web queries
<nb> public class Tree extends WidgetGroup { public void clicked ( InputEvent event , float x , float y ) { Node node = getNodeAt ( y ) ; if ( node == null ) return ; + if ( node != getNodeAt ( getTouchDownY ( ) ) ) return ; if ( Gdx . input . isKeyPressed ( Keys . SHIFT_LEFT ) || Gdx . input . isKeyPressed (...
Tree require touch down on same node as touch up for a click
<nb> public class ConstantsBrowser extends ListActivity { } @ override + public void onDestroy ( ) { + constantsCursor . close ( ) ; + } + + @ override public boolean onCreateOptionsMenu ( Menu menu ) { menu . add ( Menu . NONE , ADD_ID , Menu . NONE , STRING0 ) . setIcon ( R . drawable . add ) ...
Added missing onDestroy to close cursor and db
<nb> public class ShadowMapView extends ShadowViewGroup { private boolean mouseDownOnMe = false ; private Point lastTouchEventPoint ; private GeoPoint mouseDownCenter ; + public boolean preLoadWasCalled ; public ShadowMapView ( MapView mapView ) { super ( mapView ) ; <nb> public class ShadowMapView exte...
added support for preLoad
<nb> public class Jetty6WebServer implements WebServer connector . setPort ( jettyHttpPort ) ; connector . setHost ( jettyAddr ) ; + connector . setHeaderBufferSize ( NUMBER0 * NUMBER1 ) ; SINGLE jetty . addConnector ( connector ) ;
Set a larger header buffer size to allow large properties to be indexed
<nb> public abstract class AbstractHistogram extends AbstractHistogramBase implements COMMENT void updatedMaxValue ( final long value ) { final long internalValue = value | unitMagnitudeMask ; SINGLE + long maxValue = this . maxValue ; while ( internalValue > maxValue ) { - maxValueUpdater . compareAndSet (...
Fix race condition in AbstractHistogram updatedMaxValue
<nb> package NAMESPACE ; import NAMESPACE ; import NAMESPACE ; - import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ;
eliminate eclipes warnings
<nb> public class PyMemberInfoStorage extends AbstractMemberInfoStorage < PyElement , Py } @ override - protected boolean memberConflict ( PsiElement member1 , PsiElement member ) { + protected boolean memberConflict ( PyElement member1 , PyElement member ) { return member1 instanceof PyFunction && member i...
Pull Up refactoring
<nb> public class BasicFileResolver implements Transformer < File , String > { throw UncheckedException . throwAsUncheckedException ( e ) ; } } + + File file = new File ( original ) ; + if ( file . isAbsolute ( ) ) { + return GFileUtils . canonicalise ( file ) ; + } + if ( URI_SCHEME . matcher ( ori...
Fixed handling of absolute file paths on Windows
<nb> public class Trampoline extends IBackupManager . Stub { @ override public void dump ( FileDescriptor fd , PrintWriter pw , String [ ] args ) { + mContext . enforceCallingOrSelfPermission ( android . Manifest . permission . DUMP , TAG ) ; + BackupManagerService svc = mService ; if ( svc != null ) { ...
Check DUMP permission in the backup service trampoline
<nb> public abstract class AbstractIOSTarget extends AbstractTarget { dict . put ( STRING0 , new NSString ( config . getExecutable ( ) ) ) ; } if ( ! dict . containsKey ( STRING1 ) ) { - dict . put ( STRING1 , new NSString ( config . getMainClass ( ) ) ) ; + String value = config . getMainClass ( ) != null ? ...
Fixed an NPE in AbstractIOSTarget when building an iOS executable without specifying run
<nb> public class PlansActivity extends AppCompatActivity { @ override protected void onActivityResult ( int requestCode , int resultCode , Intent data ) { super . onActivityResult ( requestCode , resultCode , data ) ; - boolean handled = mIabHelper . handleActivityResult ( requestCode , resultCode , data ) ; ...
Drop unused variable
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; - import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> public class MonkeyMojo extends AbstractAndroidMojo private boolean mavenSkipTests ; COMMENT COMMENT - COMMENT + COMMENT COMMENT...
Remove Screenshot wrapper
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> public class TesterContext implements Context { @ override public String getContainerSciFilter ( ) { return null ; } + + @ overrid...
Add new methods to test class
<nb> class ReaderPostRenderer { SINGLE . append ( STRING0 ) + SINGLE + . append ( STRING1 ) + SINGLE . append ( STRING2 ) . append ( mResourceVars . marginSmallPx ) . append ( STRING3 ) . append ( STRING4 ) . append ( mResourceVars . marginSmallPx ) . append ( STRING5 ) <nb> public class ReaderImage...
Fixed regex bug that caused image tags to be skipped if not closed by
<nb> public class Engine implements SensorEventListener , OnTouchListener , ITouchEvent } public void setSurfaceSize ( final int pSurfaceWidth , final int pSurfaceHeight ) { + Debug . w ( STRING0 + pSurfaceWidth + STRING1 + pSurfaceHeight , new Exception ( ) ) ; this . mSurfaceWidth = pSurfaceWidth ; this ....
Added a LogException to be thrown when the the size of a SurfaceView changes
<nb> 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 ; COMMENT COMMENT COMMENT + COMMENT COMMENT ...
Fix ArrayStoreException caused by JerseyAutoConfiguration
<nb> public class DefaultSubscriptionTimeline implements SubscriptionTimeline { SINGLE SINGLE - SINGLE - if ( cur . getActiveVersion ( ) != activeVersion ) { + SINGLE + if ( cur . getActiveVersion ( ) != activeVersion || ! cur . isActive ( ) ) { continue ; } startDate = ( startDate == null ) ? cur ....
Remove inactive events from bundle timeline
<nb> public class OsMoGroupsActivity extends OsmandExpandableListActivity implements R . drawable . ic_action_gshare_light , R . drawable . ic_action_gshare_dark , MenuItem . SHOW_AS_ACTION_IF_ROOM ) ; createMenuItem ( menu , CREATE_GROUP , R . string . osmo_create_group , - COMMENT + R . drawable . ic_action...
Changed create grop text to icon
<nb> public class JavaAnonymousClassTreeElement extends JavaClassTreeElement { @ override public String getLocationString ( ) { - return ( ( PsiAnonymousClass ) getElement ( ) ) . getBaseClassType ( ) . getCanonicalText ( ) ; + return ( ( PsiAnonymousClass ) getElement ( ) ) . getBaseClassType ( ) . getClassN...
avoid full package name
<nb> package NAMESPACE ; import NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> class Main { try { if ( encoding != null ) { isr = new InputStreamReader ( - new FileInputStream ( file . getAbsolutePath ( ) ) , encoding ) ; + new BufferedInputStrea...
add more buffering
<nb> public abstract class AbstractChannelBuffer implements ChannelBuffer { public int writeBytes ( ScatteringByteChannel in , int length ) throws IOException { int writtenBytes = setBytes ( writerIndex , in , length ) ; - writerIndex += writtenBytes ; + if ( writtenBytes > NUMBER0 ) { + writerIndex += writ...
Fixed a bug where AbstractChannelBuffer writeBytes decreases the writerIndex when the specified channel is closed
<nb> public class AndroidSdk } COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + public String getLintPath ( ) { + return getPathForTool ( STRING0 ) ; + } + + COMMENT COMMENT COMMENT COMMENT
adding getter for lint path
<nb> public interface Arrow extends Projectile { COMMENT COMMENT public void setKnockbackStrength ( int knockbackStrength ) ; + + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + public boolean isCritical ( ) ; + + COMMENT + COMMENT ...
Add setCritical and isCritical methods to Arrow java
<nb> public class ParentRunnerTest { CountingRunListener listener = new CountingRunListener ( ) ; RunNotifier runNotifier = new RunNotifier ( ) ; runNotifier . addListener ( listener ) ; - ParentRunner runner = new BlockJUnit4ClassRunner ( testClass ) ; + ParentRunner < ? > runner = new BlockJUnit4ClassRunner...
Add type wildcard
<nb> COMMENT - COMMENT + COMMENT COMMENT COMMENT COMMENT <nb> public final class SetGeneratedByVisitor extends ASTVisitor { return super . visit ( node , scope ) ; } + @ override public boolean visit ( ArrayInitializer node , ClassScope scope ) { + fixPositions ( setGeneratedBy ( node , source )...
add missing method to SetGeneratedByVisitor
<nb> public abstract class AbstractAjpProcessor < S > extends AbstractProcessor < S > { COMMENT COMMENT - COMMENT - COMMENT + COMMENT + COMMENT COMMENT protected int keepAliveTimeout = - NUMBER0 ; public int getKeepAliveTimeout ( ) { return keepAliveTimeout ; }
Correct the comment on the default timeout
<nb> public class WorldEditPlugin extends JavaPlugin { null ; try { JarFile file = new JarFile ( getFile ( ) ) ; - ZipEntry copy = file . getEntry ( STRING0 + File . separator + name ) ; + ZipEntry copy = file . getEntry ( STRING1 + name ) ; if ( copy == null ) throw new FileNotFoundException ( ) ; input ...
Fixed config generation for Windows users
<nb> public class OCamlLink extends AbstractBuildRule { public Path getPathToOutput ( ) { return outputRelativePath ; } + + @ override + public boolean isCacheable ( ) { + SINGLE + SINGLE + SINGLE + SINGLE + return false ; + } }
don t cache ocaml link rules
<nb> public class MainActivity extends PreferenceActivity { @ override protected void onDestroy ( ) { super . onDestroy ( ) ; - App . bus . unregister ( this ) ; + try { + App . bus . unregister ( this ) ; + } catch ( Exception ignored ) { + } } @ override
Ignore exceptions when unregistering
<nb> public class DefaultWebSocketProcessor implements WebSocketProcessor , Serializab if ( webSocket != null ) { try { r . setAttribute ( WebSocket . CLEAN_CLOSE , Boolean . TRUE ) ; - webSocket . resource ( null ) . close ( s ) ; + webSocket . resource ( null ) ; + + if ( webSocket . isOpen ( ) ) webSoc...
Prevent double close
<nb> public class VpnServiceBinder extends Service { } private synchronized void checkStatus ( VpnProfile p ) { - if ( mService == null ) broadcastConnectivity ( p . getName ( ) , VpnState . IDLE ) ; - - if ( ! p . getName ( ) . equals ( mService . mProfile . getName ( ) ) ) { + if ( ( mService == null ) ...
Fix NullPointer in VpnServiceBinder checkStatus
<nb> package NAMESPACE ; import NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; import static NAMESPACE ; <nb> import static NAMESPACE ; COMMENT COMMENT COMMENT - public class ScoreTypeTests { + public class ScoreTypeTests extends ElasticsearchTestCase { @ test public void minFromStrin...
TEST all tests should extend ElasticsearchTestCase
<nb> public class IdeStatusBarImpl extends JComponent implements StatusBarEx { @ override public void paint ( Graphics g ) { super . paint ( g ) ; - - SINGLE - g . setColor ( UIUtil . getPanelBackground ( ) ) ; - g . drawLine ( NUMBER0 , getHeight ( ) , getWidth ( ) , getHeight ( ) ) ; + if ( UIUtil . i...
remove white stripe under Aqua
<nb> public interface OIdentifiable extends Comparable < OIdentifiable > , Comparator < OId COMMENT COMMENT COMMENT - public ORecord < ? > getRecord ( ) ; + public < T extends ORecord < ? > > T getRecord ( ) ; }
added autocast on OIdentifiable getRecord
<nb> public final class IndicesRequestCache extends AbstractComponent implements Remo COMMENT COMMENT public static final Setting < Boolean > INDEX_CACHE_REQUEST_ENABLED_SETTING = - Setting . boolSetting ( STRING0 , false , Property . Dynamic , Property . IndexScope ) ; + Setting . boolSetting ( STRING0 , tru...
Enable the indices request cache by default
<nb> public class Bootstrap { FileSystemUtils . mkdirs ( fPidFile . getParentFile ( ) ) ; } RandomAccessFile rafPidFile = new RandomAccessFile ( fPidFile , STRING0 ) ; - rafPidFile . writeBytes ( Long . toString ( JvmInfo . jvmInfo ( ) . pid ( ) ) + STRING1 ) ; + rafPidFile . writeBytes ( Long . toString ( Jv...
don t write n after teh pid in the pid file
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; COMMENT COMMENT COMMENT - public class HazelcastTopicEndpoint extends HazelcastDefaultEndpoint { + public class HazelcastTopicEndpoint extends HazelcastDefaultEndpoint implement...
Added support for multiple consumers at HazelcastTopicEndPoint
<nb> COMMENT - COMMENT + COMMENT COMMENT COMMENT COMMENT <nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> public class ListPopupImpl extends WizardPopup implements ListPopup {...
add method to show action list with alignment to focused jlabel
<nb> public class LocalVariablesUtil { @ override public void visitLocalVariable ( PsiLocalVariable variable ) { + super . visitLocalVariable ( variable ) ; if ( ! myReached ) { appendName ( variable . getName ( ) ) ; myCurrentSlotIndex += getTypeSlotSize ( variable . getType ( ) ) ;
do not add slot variable names that declared after the current position
<nb> public class CachingModuleVersionRepository implements LocalAwareModuleVersionRe LOGGER . debug ( STRING0 , context . getDescription ( ) , component . getId ( ) , delegate . getName ( ) ) ; } - delegate . resolveModuleArtifacts ( component , context , result ) ; + delegate . resolveModuleArtifacts ( comp...
Unpack the moduleSource when delegating from caching repository to external resource resolver
<nb> public class ChildBrowser extends Plugin { settings . setJavaScriptCanOpenWindowsAutomatically ( true ) ; settings . setBuiltInZoomControls ( true ) ; settings . setPluginsEnabled ( true ) ; + settings . setDomStorageEnabled ( true ) ; webview . loadUrl ( url ) ; webview . setId ( NUMBER0 ) ; webview...
Enabling localStorage in ChildBrowser
<nb> public class SeasonsFragment extends SherlockListFragment implements @ override public void onClick ( View v ) { onFlagShowWatched ( true ) ; + fireTrackerEvent ( STRING0 ) ; } } ; OnClickListener mListenerFlagAllUnwatched = new OnClickListener ( ) { @ override public void onClick ( View v ) { ...
Log inline flagging actions for seasons
<nb> public class CrashTest { long end = System . currentTimeMillis ( ) + NUMBER0 * NUMBER1 * NUMBER2 * TT . scale ( ) ; String tmpDir = System . getProperty ( STRING0 ) ; - if ( new File ( tmpDir ) . getFreeSpace ( ) < NUMBER3 e9 ) + if ( new File ( tmpDir ) . getFreeSpace ( ) < NUMBER2 e9 ) fail ( STRING1...
require less free space
<nb> public class PluginRunConfiguration extends RunConfigurationBase { params . getClassPath ( ) . addFirst ( libPath + File . separator + STRING0 ) ; params . getClassPath ( ) . addFirst ( libPath + File . separator + STRING1 ) ; params . getClassPath ( ) . addFirst ( libPath + File . separator + STRING2 ) ; ...
replace idea jar by bootstrap jar
<nb> public class ForgeChunkManager throw new RuntimeException ( STRING0 ) ; } - int allowedCount = ticketConstraints . containsKey ( modId ) ? ticketConstraints . get ( modId ) : defaultMaxCount ; + int allowedCount = getMaxTicketLengthFor ( modId ) ; if ( tickets . get ( world ) . get ( modId ) . size (...
Actually use the override constraint in ticket requests
<nb> package NAMESPACE ; import NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> import NAMESPACE ; public class ResizeSurfaceView extends SurfaceView { public ResizeSurfaceView ( Context context , AttributeSet attrs ) { super ( context , attrs ) ; + getHolder ( ) . se...
Fix black screen bug
<nb> public class NearCacheLocalInvalidationTest extends HazelcastTestSupport { } private static String getMapName ( ) { - return mapName + randomString ( ) ; + return randomMapName ( mapName ) ; } } <nb> public abstract class HazelcastTestSupport { return UUID . randomUUID ( ) . toString ( ) ; } ...
introduced randomMapName method
<nb> public class IndexInfrastructure { public static boolean versionDiffers ( final File versionFile , final int currentIndexVersion ) { try { + ourLastStamp = Math . max ( ourLastStamp , versionFile . lastModified ( ) ) ; final DataInputStream in = new DataInputStream ( new BufferedInputStream ( new FileInp...
update lastStamp once we check for version of particular index
<nb> final class ActivityRecord { if ( fullscreen == toOpaque ) { return false ; } - AttributeCache . Entry ent = - AttributeCache . instance ( ) . get ( packageName , realTheme , styleable . Window , userId ) ; - if ( ent == null - || ! ent . array . getBoolean ( styleable . Window_windowIsTranslucent , ...
Allow opaque windows to become translucent
<nb> public class JPAProviderRule implements MethodRule { } private < T extends Annotation > boolean hasAnnotation ( FrameworkMethod method , Class < T > clazz ) { - T rv = method . getMethod ( ) . getAnnotation ( clazz ) ; - if ( rv == null ) { - rv = method . getMethod ( ) . getDeclaringClass ( ) . getAnn...
Use the isAnnotationPresent method for annotation presence checking
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> public class Pop3Store extends RemoteStore { STRING0 ) ; } } catch ( SSLException e ) { - throw new CertificateValidationException (...
Don t throw CertificateValidationException on generic SSLExceptions
<nb> import static NAMESPACE import NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> import NAMESPACE ; public class HttpSessionSecurityContextRepositoryTests { private final TestingAuthenticationToken testToken = new TestingAuthenticationToken ( STRING0...
Call SecurityContextHolder clearContext in tear down of HttpSessionSecurityContextRepositoryTests
<nb> + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT package NAMESPACE ; import NAMESPACE ;
Adding GPL license to header
<nb> public class AntStructuredElementImpl extends AntElementImpl implements AntStruc } finally { myInGettingChildren = false ; - final AntFile antFile = getAntFile ( ) ; - if ( antFile != null ) { - antFile . invalidateProperties ( ) ; - } } } } <nb> public class AntTargetImpl extends AntStructur...
revert fix properties invalidation after element children were build due to unacceptable performance
<nb> public final class Settings { STRING0 ; COMMENT + COMMENT + COMMENT + public static final String VENDING_DISK_INPUT_BUFFER_BYTES = + STRING1 ; + + COMMENT + COMMENT + COMMENT + public static final String VENDING_DISK_OUTPUT_BUFFER_BYTES = + STRING2 ; + + COMMENT COMMENT COMMENT ...
Add constants to adjust Vending input and output buffer sizes
<nb> import NAMESPACE ; COMMENT COMMENT COMMENT + @ suppresswarnings ( STRING0 ) public class BuildFileParseException extends Exception implements ExceptionWithHumanReadableMessage { + private BuildFileParseException ( String message ) { super ( message ) ; } <nb> public class Parser { COMMENT ...
Add missing Override annotation
<nb> public class Solo { } COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + + public ArrayList < NumberPicker > getCurrentNumberPickers ( ) { + return viewFetcher . getCurrentViews ( NumberPicker . class ) ; + } + + COMMENT COMMENT COMMENT COMMENT
Added the new method getCurrentNumberPickers
<nb> public class XMPPDOMFragment extends AbstractFragment implements XMPPFragment { } COMMENT - COMMENT - COMMENT - public XMPPDOMFragment ( ) { - root = DocumentHelper . createElement ( STRING0 ) ; - } - - COMMENT COMMENT COMMENT COMMENT
Removed unused and incorrect empty constructor
<nb> package NAMESPACE ; COMMENT COMMENT COMMENT - COMMENT - COMMENT + COMMENT + COMMENT + COMMENT COMMENT COMMENT COMMENT
Changing words in question for text justification
<nb> public final class Utilities { public static boolean isVectorMode ( Configuration conf ) { if ( HiveConf . getBoolVar ( conf , HiveConf . ConfVars . HIVE_VECTORIZATION_ENABLED ) && Utilities . getPlanPath ( conf ) != null && Utilities - . getMapRedWork ( conf ) . getMapWork ( ) . getVectorMode ( ) ) { + ...
Avoid Utilities getMapRedWork for spark Spark Branch Rui reviewed by Xuefu
<nb> package NAMESPACE ; - import NAMESPACE ; - + import NAMESPACE ; import NAMESPACE ; - import NAMESPACE ; + import NAMESPACE ; COMMENT COMMENT <nb> public class BasicDBObject extends BasicBSONObject implements DBObject { return newobj ; } - private boolean _isPartialObject = false...
Removed unnecessary field initialization
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; - import NAMESPACE ; - import NAMESPACE ; - import NAMESPACE ; - import NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> public abstract class IntroduceVariableBase exte...
erase type before array creation
<nb> public class ExpressionInterpreter else if ( value instanceof Boolean ) { type = Type . BOOLEAN ; } + else if ( value instanceof Expression ) { + SINGLE + return node ; + } else { throw new RuntimeException ( STRING0 + value . getClass ( ) . getName ( ) ) ; } <nb> public class TestExpressionI...
Fix bug when optimizing expression containing function calls
<nb> public class ActivityShare extends Activity { FetchTask fetchTask = new FetchTask ( ) ; fetchTask . executeOnExecutor ( mExecutor , extras . getString ( cPackageName ) ) ; } else { - for ( ApplicationInfo aInfo : getPackageManager ( ) . getInstalledApplications ( NUMBER0 ) ) { - FetchTask fetchTask = new...
Batch fetch only for user apps
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; - import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> import NAMESPACE ; COMMENT COMMENT @ runwith ( DefaultServer . class ) - @ ignore ( STRING0 ) public class SpnegoBasicAuthenticationTestCase extends SpnegoAuthenticatio...
Remove Ignore from test
<nb> public class TestPathChildrenCacheInCluster InstanceSpec connectionInstance = cluster . findConnectionInstance ( client . getZookeeperClient ( ) . getZooKeeper ( ) ) ; cluster . killServer ( connectionInstance ) ; - Assert . assertTrue ( timing . awaitLatch ( resetLatch ) ) ; - Assert . assertTrue ( timi...
Give it more time to complete
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; + import NAMESPACE ; import static NAMESPACE ; import static NAMESPACE ; import static NAMESPACE ; import static NAMESPACE ; + import static NAMESPACE ; public class BackupCoreIT { @ rule + public SuppressOutp...
Silence a core edge IT
<nb> public final class BlockWorkerClientServiceHandler implements BlockWorkerClientS mWorker . requestSpace ( sessionId , blockId , requestBytes ) ; return true ; } catch ( WorkerOutOfSpaceException e ) { - LOG . warn ( STRING0 , requestBytes ) ; + LOG . warn ( STRING1 , + requestBytes , blockId ) ; retu...
Add more information to logger warning
<nb> public class StandardIDPool implements IDPool { SINGLE log . debug ( STRING0 ) ; idBlockRenewer . join ( MAX_WAIT_TIME ) ; + if ( idBlockRenewer . isAlive ( ) ) throw new IllegalStateException ( STRING1 ) ; } if ( bufferMaxID == BUFFER_POOL_EXHAUSTION || bufferNextID == BUFFER_POOL_EXHAUSTION ) throw...
Made id block allocation relative and added additional check
<nb> public class IncrementalIndexStorageAdapter implements StorageAdapter if ( numAdvanced == - NUMBER0 ) { numAdvanced = NUMBER1 ; - while ( baseIter . hasNext ( ) ) { - currEntry . set ( baseIter . next ( ) ) ; - if ( filterMatcher . matches ( ) ) { - return ; - } - - numAdvanced ++ ; - } } e...
add fix for II
<nb> class SelectStatementPlanner { SimpleSelect . enablePagingIfApplicable ( collectPhase , localMergePhase , limits . finalLimit ( ) , limits . offset ( ) , context . clusterService ( ) . localNode ( ) . id ( ) ) ; - CollectAndMerge subPlan = new CollectAndMerge ( collectPhase , null ) ; - return new QueryT...
Remove subPlan re creation in SelectStatementPlanner
<nb> public class SSTableReader extends SSTable implements SelfRefCounted < SSTableRead if ( barrier != null ) barrier . await ( ) ; bf . close ( ) ; - dfile . close ( ) ; - ifile . close ( ) ; if ( summary != null ) summary . close ( ) ; if ( runOnClose != null ) runOnClose . run ( ) ; + dfile . cl...
Fix SSTableReader runOnClose running after dependent resources closed
<nb> public class StorageServiceServerTest metadata . updateNormalToken ( new LongToken ( NUMBER0 ) , InetAddress . getByName ( STRING0 ) ) ; metadata . updateNormalToken ( new LongToken ( NUMBER1 ) , InetAddress . getByName ( STRING1 ) ) ; - Map < String , String > configOptions = new HashMap < String , String...
remove dead code
<nb> public abstract class MRTask < T extends MRTask < T > > extends DTask < T > implements Fo vecs [ i ] = _appendables [ i ] . close ( fs ) ; } } - return new Frame ( key , names , vecs ) ; + Frame fr = new Frame ( key , names , vecs ) ; + if ( key != null ) DKV . put ( fr , fs ) ; + return fr ; } p...
MRTask outputFrame puts new Frame in DKV
<nb> public class DescriptorRendererImpl implements DescriptorRenderer { @ notnull private String renderNormalizedType ( @ notnull JetType type ) { + if ( type instanceof LazyType && debugMode ) { + return type . toString ( ) ; + } if ( TypesPackage . isFlexible ( type ) ) { if ( debugMode ) { return ...
Fix descriptor renderer for LazyType
<nb> public interface PendingAttributesForView void resolveAttributeIfExists ( String attribute , AttributeResolver attributeResolver ) ; void resolveAttributeGroupIfExists ( String [ ] attributeGroup , AttributeGroupResolver attributeGroupResolver ) ; boolean isEmpty ( ) ; - ViewResolutionErrors getResolutionE...
renamed PendingAttributesForView getResolutionError to
<nb> import NAMESPACE ; import NAMESPACE ; COMMENT - COMMENT + COMMENT + COMMENT + COMMENT COMMENT public class VehicleDestroyEvent extends VehicleEvent implements Cancellable { private Entity attacker ; <nb> public class VehicleDestroyEvent extends VehicleEvent implements Cancellable { } CO...
Added a case previously not covered by VehicleDestroyEvent for boats updated VehicleDestroyEvent Javadocs
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; - import NAMESPACE ; + import NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> package NAMESPACE ; import NAMESPACE ; - import NAMESPACE ; - import NAMESPACE ; import NAMESPACE ; ...
Fix wildcard imports
<nb> class PowerManagerService extends IPowerManager . Stub SINGLE SINGLE SINGLE - if ( ( mPowerState & SCREEN_ON_BIT ) != NUMBER0 ) { + if ( ! mProximitySensorActive && ( mPowerState & SCREEN_ON_BIT ) != NUMBER0 ) { if ( mSpew ) { Log . d ( TAG , STRING0 ) ; <nb> class PowerManagerService extends IPo...
Fix a race condition that resulted in the screen coming on without the brightness set to the correct value
<nb> public class ProjectGenerator { if ( targetGid . isPresent ( ) ) { SINGLE SINGLE + String thisTargetName = appleBuildRule . getFullyQualifiedName ( ) ; String conflictingTargetName = gidsToTargetNames . get ( targetGid . get ( ) ) ; - if ( conflictingTargetName != null ) { + SINGLE + SINGLE + SIN...
Fix detection of conflicting GIDs
<nb> public class Element { if ( ! stringToken . equals ( STRING0 ) && stringRegExp ) { regToken = stringToken ; if ( ! caseSensitive ) { - SINGLE - SINGLE - regToken = STRING1 . concat ( stringToken ) ; + regToken = STRING2 . concat ( stringToken ) ; } p = Pattern . compile ( regToken ) ; } <nb> ...
fixing a nasty bug in case sensitive matching of regular expressions
<nb> public class HandleMetaClass extends DelegatingMetaClass { public void addMetaBeanProperty ( MetaBeanProperty metaBeanProperty ) { throw new UnsupportedOperationException ( ) ; } + + public boolean equals ( Object obj ) { + return super . equals ( obj ) || getAdaptee ( ) . equals ( obj ) ; + } }
Better equals for HandleMetaClass
<nb> public class ASTHelpers { COMMENT COMMENT public static boolean hasAnnotation ( Symbol sym , String annotationType , VisitorState state ) { - Symbol annotationSym = state . getSymtab ( ) . enterClass ( state . getName ( annotationType ) ) ; + Name annotationName = state . getName ( annotationType ) ; +...
Make ASTHelpers hasAnnotation less thread hostile
<nb> public class CordovaWebView extends WebView { Log . i ( TAG , STRING0 ) ; return ; } - else if ( SDK_INT == Build . VERSION_CODES . JELLY_BEAN_MR1 ) { - Log . i ( TAG , STRING1 ) ; - return ; - } this . addJavascriptInterface ( exposedJsApi , STRING2 ) ; } <nb> COMMENT package NAMESPACE ;...
Add JavascriptInterface annotations to ExposedJsApi
<nb> public interface TypeDescription extends TypeDefinition , ByteCodeElement , TypeVa class ForLoadedType extends AbstractBase implements Serializable { COMMENT + COMMENT + COMMENT + private static final long serialVersionUID = NUMBER0 ; + + COMMENT COMMENT COMMENT private final Class < ? > type...
Added serial version UID
<nb> public class WiederVsWiderRule extends GermanRule { if ( foundSpiegelt && foundWieder && ! foundWider && ! ( tokens . length > i + NUMBER0 && ( tokens [ i + NUMBER1 ] . getToken ( ) . equals ( STRING0 ) || tokens [ i + NUMBER0 ] . getToken ( ) . equals ( STRING0 ) ) ) ) { + final String shortMsg = STRING1 ...
de add short message
<nb> public abstract class Script extends GroovyObjectSupport { public void setProperty ( String property , Object newValue ) { if ( STRING0 . equals ( property ) ) setBinding ( ( Binding ) newValue ) ; + else if ( STRING1 . equals ( property ) ) + setMetaClass ( ( MetaClass ) newValue ) ; else binding . ...
added the ability to set a custom meta class on scripts
<nb> public class TestHttpResponse extends HttpResponseStub { } @ override public Header getContentType ( ) { - for ( Header header : headers ) { - if ( header . getName ( ) . equals ( STRING0 ) ) { - return header ; - } - } - return null ; + return getFirstHeader ( STRING0 ) ; + } + + @ overr...
Implement TestHttpResponse getContentEncoding
<nb> public class RuleActivatorMediumTest { assertThat ( activeRuleDto . getInheritance ( ) ) . isEqualTo ( expectedInheritance ) ; SINGLE - List < ActiveRuleParamDto > paramDtos = db . activeRuleDao ( ) . findParamsByActiveRule ( dbSession , activeRuleDto ) ; + List < ActiveRuleParamDto > paramDtos = db . ac...
fix quality flaw method naming