diff
stringlengths
38
1.78k
msg_token
stringlengths
9
190
<nb> public class ConnectionProxy implements IHikariConnectionProxy } } - public boolean getAutoCommit ( ) throws SQLException - { - return delegate . getAutoCommit ( ) ; - } - - public void commit ( ) throws SQLException - { - delegate . commit ( ) ; - } - SINGLE SINGLE SINGLE
Remove unnecessary delegation
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> public final class BazelGenRuleRule implements RuleDefinition { COMMENT return builder . setOutputToGenfiles ( ) + SINGLE + . requ...
Add BazelConfiguration to GenRuleRule s declared fragments to support
<nb> public class JavaCompletionUtil { PsiSubstitutor plainSub = plainResult . getSubstitutor ( ) ; PsiSubstitutor castSub = TypeConversionUtil . getSuperClassSubstitutor ( plainClass , ( PsiClassType ) castType ) ; + PsiType returnType = method . getReturnType ( ) ; if ( method . getSignature ( plainSub ) . ...
don t cast qualifier on completion when it leads to a less specific return type fixes NormalCompletionTest testListArrayListCast
<nb> public class ShadowView { } @ implementation + public View . OnFocusChangeListener getOnFocusChangeListener ( ) { + return onFocusChangeListener ; + } + + @ implementation public void invalidate ( ) { wasInvalidated = true ; }
Add getOnFocusChangeListener to View
<nb> public class BadShiftAmount extends DescribingMatcher < BinaryTree > { COMMENT COMMENT COMMENT + COMMENT + COMMENT + COMMENT COMMENT private static final Matcher < BinaryTree > BAD_SHIFT_AMOUNT_LONG = new Matcher < BinaryTree > ( ) { @ override <nb> public class BadShiftAmountNegativeCases { ...
Add a couple additional test cases
<nb> public class GCMIntentService extends GCMBaseIntentService { @ override protected void onError ( Context context , String errorId ) { - AppLog . v ( T . NOTIFS , STRING0 + errorId ) ; + AppLog . e ( T . NOTIFS , STRING0 + errorId ) ; } private static String mPreviousNoteId = null ;
Log GCM registration errors with the correct log level
<nb> class ZoomManager { mMinZoomScale = zoomOverviewScale ; } SINGLE - if ( ! mWebView . drawHistory ( ) && ( mInZoomOverview || mInitialZoomOverview ) - && Math . abs ( ( viewWidth * mInvActualScale ) - mZoomOverviewWidth ) > NUMBER0 ) { + if ( ! mWebView . drawHistory ( ) && ( mInitialZoomOverview || ( m...
Fix zoom overview logic
<nb> public class GCInspector Long previousCount = gccounts . get ( gc . getName ( ) ) ; Long count = gc . getCollectionCount ( ) ; - if ( count == NUMBER0 ) - continue ; + if ( previousCount == null ) - previousCount = NUMBER0 L ; + previousCount = NUMBER0 L ; + if ( count == previousCount ) + co...
Fix div by zero error take two
<nb> public class ObjectMapper COMMENT COMMENT COMMENT + COMMENT + COMMENT + COMMENT COMMENT COMMENT COMMENT <nb> public class ObjectMapper COMMENT COMMENT COMMENT + COMMENT + COMMENT + COMMENT COMMENT COMMENT COMMENT <nb> public class ObjectMapper COMMENT COMMENT COMMENT ...
add javadoc comments to points out potential cost of module discovery methods in ObjectMapper
<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 ; public cla...
Remove imports and commented fest reflect code
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; COMMENT COMMENT COMMENT - public class PlatformProjectViewStructureProvider implements TreeStructureProvider { + public class PlatformProjectViewStructureProvider implements T...
load only file element types not all from language for ruby groovy jsp js
<nb> public class HttpRequest { } COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + public HttpRequest partHeader ( String name , String value ) + throws RequestException { + return send ( name ) . send ( STRING0 ) . send ( value ) . send ( STRING1 ) ; + } + ...
Add helper to write multipart headers to the response body
<nb> public class NetworkClassLoader extends ClassLoader { Class < ? > loadedClass = super . findLoadedClass ( className ) ; if ( null == loadedClass ) { - return loadedClass = super . defineClass ( className , classBuffer , offset , length ) ; + return super . defineClass ( className , classBuffer , offset ,...
Remove usless assignment
<nb> public class FragmentActivity extends Activity implements SupportActivity { mOptionsMenuCreateResult |= mFragments . dispatchCreateOptionsMenu ( mSupportMenu , getMenuInflater ( ) ) ; if ( getSupportActionBar ( ) != null ) { + if ( onPrepareOptionsMenu ( mSupportMenu ) ) { + mFragments . dispatchPrepareO...
Ensure we are dispatching onPrepareOptionsMenu for action items upon invalidation
<nb> package NAMESPACE ; + import NAMESPACE ; + COMMENT COMMENT COMMENT <nb> public class WebAirMapViewBuilder implements AirMapViewBuilder < WebViewMapFragmen COMMENT @ override public WebViewMapFragment build ( ) { if ( options == null ) { - options = new MapboxWebMapType ( mapboxAccessToken ,...
Adding Mapbox Access Token and Map Id checks for Web Map provider
<nb> final class Listener { TypeMirror ownerTypeMirror = listenerElement . getEnclosingElement ( ) . asType ( ) ; ownerTypeMirror = typeUtils . erasure ( ownerTypeMirror ) ; - String ownerType = ownerTypeMirror . toString ( ) ; + String ownerType = stripTypeParameters ( ownerTypeMirror . toString ( ) ) ; St...
bad generated listener code when built with Eclipse
<nb> public class MapConfigReadOnly extends MapConfig { } @ override - public void setMinEvictionCheckMillis ( long checkIfEvictableAfterMillis ) { + public MapConfig setMinEvictionCheckMillis ( long checkIfEvictableAfterMillis ) { throw new UnsupportedOperationException ( STRING0 + getName ( ) ) ; }
setter should return MapConfig
<nb> public abstract class AstVisitor < R , C > protected R visitCreateTable ( CreateTable node , C context ) { - return visitNode ( node , context ) ; + return visitStatement ( node , context ) ; } protected R visitDropTable ( DropTable node , C context ) { - return visitNode ( node , context ) ; ...
Fix default visitors for create and drop table
<nb> public class NanoXmlUtil { } public static class ParserStoppedException extends RuntimeException { + @ override + public Throwable fillInStackTrace ( ) { + return this ; + } } private static class RootTagInfoBuilder implements IXMLBuilder {
Don t fill stacktrace for control flow exceptions
<nb> public interface DynamicType { COMMENT COMMENT COMMENT - COMMENT COMMENT COMMENT COMMENT
Removed empty tag from javadoc
<nb> public class Nio2Endpoint extends AbstractEndpoint < Nio2Channel > { } @ override - public ByteBuffer expand ( ByteBuffer buffer , int remaining ) { return buffer ; } - @ override public ByteBuffer getReadBuffer ( ) { return readbuf ; } @ override public ByteBuffer getWriteBuffer ( ) { return write...
Remove useless methods
<nb> public class Gossiper implements IFailureDetectionEventListener , GossiperMBean } COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + public void replacedEndpoint ( InetAddress endpoint ) + { + removeEndpoint ( endpoint ) ; + evictFromMembership ( endpoint ) ; + } + + COMMENT COMMENT ...
Fix bad merge
<nb> COMMENT package NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> import NAMESPACE ; public interface CodecAggregator { @ nonnull - public Result addChunk ( ChannelBuffer buf ) ; + Result addChunk ( ChannelBuffer buf ) ; - public class Result { + final clas...
Add CodecAggregator Result toString
<nb> public class ActivityApp extends Activity { SINGLE Bundle extras = getIntent ( ) . getExtras ( ) ; + if ( extras == null ) { + finish ( ) ; + return ; + } + int uid = extras . getInt ( cUid ) ; String restrictionName = ( extras . containsKey ( cRestrictionName ) ? extras . getString ( cRestrict...
Fixed null pointer support info
<nb> public final class ScriptGroup extends BaseObj { COMMENT COMMENT COMMENT + COMMENT + COMMENT COMMENT COMMENT COMMENT
Add Java doc comments on script group name reuse
<nb> public abstract class LightPsiClassBase extends LightElement implements PsiClass @ nullable @ override public PsiClass findInnerClassByName ( @ nonnls String name , boolean checkBases ) { - SINGLE - return null ; + return PsiClassImplUtil . findInnerByName ( this , name , checkBases ) ; } @ nulla...
java delegate LightPsiClassBase findInnerClassByName to PsiClassImplUtil
<nb> public class Preferences { } COMMENT - public static void setShouldShowTaskKillerHelp ( Context context , boolean state ) { + public static void disableTaskKillerHelp ( Context context ) { Editor editor = getPrefs ( context ) . edit ( ) ; - editor . putBoolean ( P_TASK_KILLER_HELP , state ) ; + edi...
Fixed issue where task killer warning popup would be displayed all the time
<nb> import NAMESPACE ; public class AsyncAccessEventAppenderFactory implements AsyncAppenderFactory < IAccessEvent > { COMMENT - COMMENT - COMMENT - COMMENT + COMMENT + COMMENT COMMENT @ override public AsyncAppenderBase < IAccessEvent > build ( ) { - return new AsyncAppenderBase < IAccessEvent...
Fix request attribute related race condition in Logback request logging
<nb> import NAMESPACE ; COMMENT COMMENT class StatsBarGraph extends GraphView { + + private static final int DEFAULT_MAX_Y = NUMBER0 ; + SINGLE private final List < List < BarChartRect > > mSeriesRectsDrawedOnScreen = ( List < List < BarChartRect > > ) new LinkedList ( ) ; private int mBarPositionToHi...
Introduced a constant that defines the default maxY value used on empty graph
<nb> public class DefaultGroovyContext implements GroovyContext { GroovyByMethodHandler groovyHandler = new DefaultGroovyByMethodHandler ( this , handler ) ; Util . configureDelegateFirst ( groovyHandler , closure ) ; try { - handler . handle ( this ) ; + groovyHandler . handle ( this ) ; } catch ( Exceptio...
Fix Groovy byContent byMethod DSL
<nb> public class ImageLoadRequest { mUrl = url ; } + public ImageLoadRequest ( String url , int priority ) { + mUrl = url ; + mPriority = priority ; + } + public int getRequestWidth ( ) { if ( mSpecifiedWidth != NUMBER0 ) { return mSpecifiedWidth ;
add priority construct method
<nb> public class NotificationManagerService extends INotificationManager . Stub final int N = mListeners . size ( ) ; for ( int i = N - NUMBER0 ; i >= NUMBER1 ; i -- ) { final NotificationListenerInfo info = mListeners . get ( i ) ; - if ( info . listener == listener && info . userid == userid ) { + if ( inf...
Compare binder instances when checking if listeners match
<nb> public class HamleDTCorrector { SINGLE int hParent = hamledtWord . get ( CoreAnnotations . CoNLLDepParentIndexAnnotation . class ) ; int aParent = ancoraWord . get ( CoreAnnotations . CoNLLDepParentIndexAnnotation . class ) ; - if ( hParent == NUMBER0 && aParent != NUMBER0 ) { + if ( hamledtWord . tag ( ...
Only perform double root corrections for conj
<nb> public class ChangeSignatureGestureDetector extends PsiTreeChangeAdapter impleme changeBean . reinit ( ) ; } else if ( ! info . equals ( changeBean . getInitialChangeInfo ( ) ) ) { changeBean . setCurrentInfo ( info ) ; + } else { + changeBean . setCurrentInfo ( null ) ; } } }
skip current bean for non signature changes e f final
<nb> public final class UnderStoreBlockInStream extends BlockInStream { return skipped ; } - private void setUnderStoreStream ( long pos ) throws IOException { + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + private void setUnderStoreStream ( long absPos ) thr...
Improve javadoc for UnderStoreBlockInStream
<nb> public class CliClient SINGLE ColumnPath path = new ColumnPath ( columnFamily , superColumnName , columnName ) ; Column column = thriftClient_ . get ( tableName , key , path , ConsistencyLevel . ONE ) . column ; - css_ . out . printf ( STRING0 , new String ( column . name , STRING1 ) , + css_ . out . pri...
corrected minor formatting nit
<nb> public class MapStoreDataLoadingContinuesWhenNodeJoins extends HazelcastTestSupp public void testNoDeadLockDuringJoin ( ) throws Exception { SINGLE final Config config = new XmlConfigBuilder ( ) . build ( ) ; - config . setProperty ( STRING0 , STRING1 ) ; + config . setProperty ( STRING0 , STRING2 ) ; ...
Fix logging setup for tests
<nb> public class TestJspServlet extends TomcatBaseTest { SINGLE ErrorPage ep = new ErrorPage ( ) ; ep . setErrorCode ( HttpServletResponse . SC_INTERNAL_SERVER_ERROR ) ; - SINGLE ep . setLocation ( STRING0 ) ; context . addErrorPage ( ep ) ;
Remove incorrect comment
<nb> public class ShowFilePathAction extends AnAction { } public static boolean isSupported ( ) { - return SystemInfo . isWindows || SystemInfo . isMac || + if ( SystemInfo . isMac ) return false ; SINGLE + return SystemInfo . isWindows || Desktop . isDesktopSupported ( ) && Desktop . getDesktop ( ) . isS...
Disable File Path on Macs
<nb> abstract public class ModelBuilder < M extends Model < M , P , O > , P extends Model . Param return NUMBER0 ; } + protected boolean ignoreStringColumns ( ) { return true ; } protected void ignoreConstColumns ( int npredictors , boolean expensive ) { SINGLE if ( _parms . _ignore_const_cols ) new Fil...
Fixed model builder ignore string columns by default
<nb> public class StandardContext extends ContainerBase ClassLoader oldContextClassLoader = Thread . currentThread ( ) . getContextClassLoader ( ) ; - if ( getLoader ( ) . getClassLoader ( ) != null ) { + if ( getLoader ( ) != null && getLoader ( ) . getClassLoader ( ) != null ) { Thread . currentThread ( )...
Avoid NPEs when attempting to destroy contexts that failed to start
<nb> public abstract class OAbstractFile implements OFile { init ( ) ; final int fileSize = getFileSize ( ) ; - final int filledUpTo = getFilledUpTo ( ) ; + int filledUpTo = getFilledUpTo ( ) ; if ( filledUpTo > NUMBER0 && filledUpTo > fileSize ) { OLogManager . instance ( ) - . warn ( + . error (...
Fixed cases when the file is corrupted and filledup size id than the file size itself
<nb> import NAMESPACE ; import NAMESPACE ; COMMENT + COMMENT + COMMENT + COMMENT COMMENT COMMENT public class JuelExpression extends ExpressionSupport < Exchange > { <nb> import NAMESPACE ; import NAMESPACE ; COMMENT + COMMENT + COMMENT + COMMENT COMMENT COMMENT public class JuelLa...
improved the javadoc
<nb> if ( MORE_DEBUG ) Slog . v ( TAG , STRING0 + nRead + STRING1 + ( size - soF SINGLE Slog . e ( TAG , STRING2 + result + STRING3 + mCurrentPackage . packageName ) ; + status = result ; } } if ( MORE_DEBUG ) Slog . v ( TAG , STRING4 ) ;
Properly end full restore attempt if getNextFullRestoreDataChunk fails
<nb> package NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> public class SampleEntity { doublePrimitive == other . doublePrimitive && doubleObject . equals ( other . doubleObject ) && str . equals ( other . str ) && - byteArray . equals ( other . byteArray ) && + Arr...
fixed byte array equals test
<nb> public class Bootstrap { final Class < ? > runner = Bootstrap . class . getClassLoader ( ) . loadClass ( STRING0 ) ; final Method main = runner . getMethod ( STRING1 , String [ ] . class ) ; - main . invoke ( null , ( Object ) args ) ; + main . invoke ( null , ( Object ) new String [ ] { STRING2 , args [...
Bootstrap should pass apply command to Runner
<nb> public class ConnectionProxy extends HikariProxyBase < Connection > implements IHik { openStatements = new ArrayList < Statement > ( NUMBER0 ) ; isClosed = new AtomicBoolean ( ) ; - creationTime = System . currentTimeMillis ( ) ; + creationTime = lastAccess = System . currentTimeMillis ( ) ; } COMM...
Fix idle timeout bug
<nb> public final class ContactsContract { CONTENT_URI , STRING0 ) ; COMMENT + COMMENT + COMMENT + COMMENT + public static final Uri CONTENT_FREQUENT_URI = Uri . withAppendedPath ( + CONTENT_URI , STRING1 ) ; + + COMMENT COMMENT COMMENT COMMENT
Introduce hidden API Contacts CONTENT_FREQUENT_URI
<nb> public class Configuration } COMMENT - COMMENT + COMMENT COMMENT public void setAllowPackage ( boolean aAllowPackage ) {
Fixed checkstyle errors
<nb> public class PersistentHashMapValueStorage { @ override protected void disposeAccessor ( DataOutputStream fileAccessor ) throws IOException { + if ( ! useSingleFileDescriptor ) IOUtil . syncStream ( fileAccessor ) ; fileAccessor . close ( ) ; } } ; <nb> class RandomAccessFileWithLengthAndSizeTracki...
to avoid persistent hash map corruption sync stream on closing file handle used for output
<nb> + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT package NAMESPACE ; import NAMESPACE ;
Adding missing license header
<nb> class LanguageToolHttpHandler implements HttpHandler { final Map < String , String > parameters = getRequestQuery ( httpExchange , requestedUri ) ; if ( requestLimiter != null && ! requestLimiter . isAccessOkay ( remoteAddress ) ) { final String errorMessage = STRING0 + remoteAddress + - STRING1 + requestL...
log the useragent parameter in case of too many requests
<nb> public class CameraPreview extends ViewGroup { SINGLE surfaceView . getHolder ( ) . addCallback ( surfaceCallback ) ; } else if ( textureView != null && Build . VERSION . SDK_INT >= NUMBER0 ) { - textureView . setSurfaceTextureListener ( surfaceTextureListener ( ) ) ; + if ( textureView . isAvailable ( )...
Added a check to see if the textureview is available and if it is then trigger the onSurfaceTextureAvailable listener
<nb> public class AnalyticsTrackerMixpanel extends Tracker { instructions = AnalyticsTrackerMixpanelInstructionsForStat . mixpanelInstructionsForEventName ( STRING0 ) ; break ; + case LOGIN_INSERTED_INVALID_URL : + instructions = AnalyticsTrackerMixpanelInstructionsForStat . + mixpanelInstructionsForEventNa...
Add missing event in Mixpanel analytics
<nb> public class CycleHttpSession { public static void openSession ( ActivitiRequest req ) { HttpSession httpSession = req . getHttpServletRequest ( ) . getSession ( true ) ; + SINGLE + int sessionTimeout = httpSession . getMaxInactiveInterval ( ) ; + if ( sessionTimeout < NUMBER0 ) { + httpSession . set...
augmenting max inactive time
<nb> public class NewAccountDialog networkPanel . add ( networkLabel , BorderLayout . WEST ) ; networkPanel . add ( networkComboBox , BorderLayout . CENTER ) ; - this . getRootPane ( ) . setDefaultButton ( addAccountButton ) ; - this . networkComboBox . setRenderer ( new NetworkListCellRenderer ( ) ) ; th...
Bring new account dialog into focus
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; + import NAMESPACE ; COMMENT COMMENT <nb> public class BlogPreferencesActivity extends SherlockFragmentActivity { COMMENT COMMENT public void viewAdmin ( View view ) { + WPStats . track ( WPStats . Stat . OPENED_VIE...
Adding WPStats tracking for view admin
<nb> public class MessagingController implements Runnable { localFolder . fetch ( Collections . singletonList ( message ) , fp , null ) ; localFolder . close ( ) ; + notificationController . removeNewMailNotification ( account , message . makeMessageReference ( ) ) ; markMessageAsReadOnView ( account , messag...
Cancel notification when viewing a message
<nb> COMMENT package NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> public class AlarmCallback extends ConfigurableEntity { return creatorUserId ; } + @ jsonignore public User getCreatorUser ( ) { return creatorUser ; }
Making AlarmCallbacks serializable
<nb> public class WindowManagerService extends IWindowManager . Stub ( Pair < WindowStateAnimator , Region > ) msg . obj ; final WindowStateAnimator winAnimator = pair . first ; winAnimator . setTransparentRegionHint ( pair . second ) ; - - scheduleAnimationLocked ( ) ; break ; } <nb> class WindowStat...
Fix NPE in setTransparentRegion
<nb> public class MainFrame extends JPanel implements TypeSafeDataProvider { if ( myLastRequest == indicator && ! ( indicator . isCanceled ( ) ) ) { myLastRequest = null ; List < Change > changes = ContainerUtil . newArrayList ( ) ; - for ( VcsFullCommitDetails details : detailsList ) { + List < VcsFullCommit...
vcs log collect changes for reversed list of commits from oldest to newest
<nb> public final class JspRuntimeContext { if ( replaced != null ) { if ( log . isDebugEnabled ( ) ) { log . debug ( Localizer . getMessage ( STRING0 , - jsw . getJspUri ( ) , context . getContextPath ( ) ) ) ; + replaced . getJspUri ( ) , context . getContextPath ( ) ) ) ; } unloadJspServletWrapper ( re...
Log the right JSP
<nb> public class CompletionRequester private ImageResource getIcon ( ) { - StandardIcons icons = StandardIcons . INSTANCE ; - SINGLE - if ( type == RCompletionType . FUNCTION ) - return icons . function ( ) ; - - return icons . help ( ) ; - + return ICONS . function ( ) ; } public static ...
just use function for now
<nb> public class NextProtoNegoServerConnection extends AbstractConnection implements { SINGLE SINGLE - LOG . debug ( STRING0 , this ) ; - unsupported ( ) ; + LOG . debug ( STRING1 , this ) ; + close ( ) ; } if ( nextProtocol != null )
NPNServerConnection not upgraded causes spin
<nb> public class GoCompletionTest extends GoCompletionTestBase { doTestEquals ( STRING0 ) ; } - SINGLE - public void _testNoKeywordCompletionInsideVarDeclarationListAfterEquals ( ) { - doTestEquals ( STRING1 ) ; + public void testKeywordCompletionInsideVarDeclarationListAfterEquals ( ) { + doTestInclud...
more pins in var specification add completion test
<nb> public class TraktSyncActivity extends BaseActivity { switch ( id ) { case DIALOG_SELECT_SHOWS : AlertDialog . Builder builder = new AlertDialog . Builder ( this ) ; - builder . setTitle ( R . string . trakt_synctotrakt ) ; + builder . setTitle ( R . string . trakt_upload ) ; final Cursor shows = getCo...
Fix button and title for upload dialog
<nb> public class TextConverter extends Visitor { throw new RuntimeException ( STRING0 + link , e ) ; } } + + SINGLE + SINGLE + SINGLE + SINGLE addMapping ( link ) ; write ( out . toString ( ) ) ; } <nb> public class TextConverter extends Visitor { } private void addMapping ( Locatable loc...
add a potential fix for wrong error positions commented out
<nb> public class Processor { try { JavaWriter writer = new JavaWriter ( w ) ; writer . packageDecl ( packageName ) ; - writer . nl ( ) ; if ( vars . asInterface ( ) ) { writer . beginInterface ( vars . value ( ) ) ; } else {
updated CodeWriter usage
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> public class PreviewUIControllerImpl implements PreviewUIController , GraphListen } public PreviewPreset [ ] getDefaultPresets ( ) { ...
added DefaultCurved and tested both Default and DefaultCurved presets
<nb> public abstract class AbstractInstant implements ReadableInstant { return field . get ( getMillis ( ) ) ; } + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + public ReadableInstant withDateTimeZone ( DateTimeZone newDateTimeZone ) { ...
Added withDateTimeZone method
<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 class GrailsContextLoader extends ContextLoad...
added shutdown hook called onShutdown for plugins to use
<nb> public enum ErrorCode { ENT_BUNDLE_IS_OVERDUE_BLOCKED ( NUMBER0 , STRING0 ) , ENT_ACCOUNT_IS_OVERDUE_BLOCKED ( NUMBER1 , STRING1 ) , + COMMENT + ENT_TRANSFER_INVALID_EFF_DATE ( NUMBER2 , STRING2 ) , + COMMENT COMMENT COMMENT <nb> public class DefaultEntitlementTransferApi implements Entitlement...
prevent transfers in the future
<nb> public class PackratActionDialog extends ModalDialog < Void > try { JsArray < PackratPackageAction > actions = JsArray . createArray ( ) . cast ( ) ; - new PackratActionDialogContents ( actions ) ; + new PackratActionDialogContents ( STRING0 , actions ) ; } catch ( Exception e ) {
fix merge conflict
<nb> public class AndroidBackend implements Backend { mClasspathMethodScanner . scan ( this , gluePaths ) ; } - COMMENT - COMMENT - COMMENT - COMMENT - COMMENT - COMMENT - COMMENT - COMMENT - public void loadGlue ( Glue glue , Method method , Class < ? > glueCodeClass ) { - mGlue = glue ; - ...
Removed unnecessary loadGlue method
<nb> public class AudioTrack int channelConfig , int audioFormat , int mode ) { SINGLE SINGLE - if ( ( sampleRateInHz < NUMBER0 ) || ( sampleRateInHz > NUMBER1 ) ) { + if ( sampleRateInHz < SAMPLE_RATE_HZ_MIN || sampleRateInHz > SAMPLE_RATE_HZ_MAX ) { throw new IllegalArgumentException ( sampleRateInHz + ...
Fix track sample rate limit
<nb> public class ResponseAwareMatcherITest extends WithJetty { get ( STRING0 ) . then ( ) . statusCode ( NUMBER0 ) . - body ( STRING1 , and ( startsWith ( STRING2 ) , endsWithPath ( STRING3 ) ) ) . + body ( STRING1 , and ( startsWith ( STRING4 ) , endsWithPath ( STRING3 ) ) ) . body ( STRING5 , equalTo ( S...
Fixed failing test
<nb> public class ClassDescriptor { SINGLE + COMMENT + COMMENT + COMMENT + protected FieldDescriptor createFieldDescriptor ( Field field ) { + return new FieldDescriptor ( this , field ) ; + } + protected Fields publicFields ; protected Fields allFields ; <nb> class Fields { } void add...
ClassDescriptor now creates FieldDescriptors too
<nb> public class PokemonGo { } return deviceInfo . getDeviceInfo ( ) ; } + + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + public SignatureOuterClass . Signature . SensorInfo getSensorSignature ( long currentTime , Random random ) { + if ( sensorInfo == null || sensorI...
Allow user SensorInfo to override generated defaults
<nb> package NAMESPACE ; import NAMESPACE ; - import NAMESPACE ; - import NAMESPACE ; - import NAMESPACE ; - import NAMESPACE ; - import NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; - import NAMESPACE ; - import NAMESPACE ; import NAMESPACE ; + import NAMESPACE ; ...
Fixed checkstyle issue
<nb> import NAMESPACE ; import NAMESPACE ; COMMENT + COMMENT + COMMENT COMMENT COMMENT COMMENT
Added TODO for PVR Textures Not PVR compressed as not all devices support that
<nb> public class StoptimeUpdater implements Runnable , TimetableSnapshotSource { } lastSnapshotTime = System . currentTimeMillis ( ) ; } else { - LOG . debug ( STRING0 , snapshot . toString ( ) ) ; + LOG . debug ( STRING0 , snapshot ) ; } return snapshot ; }
avoid null dereference
<nb> public class WXPageActivity extends WXBaseActivity implements IWXRenderListener , public void onSuccess ( WXHttpTask task ) { Log . e ( TAG , STRING0 + url ) ; try { - mConfigMap . put ( STRING1 , url + Constants . WEEX_SAMPLES_KEY ) ; + mConfigMap . put ( STRING1 , url ) ; mInstance . render ( TAG , n...
android update WXpageActivity java
<nb> public abstract class Layer extends Iced { @ paramssearch.ignore public int units ; - protected NeuralNet params ; + public NeuralNet params ; SINGLE protected transient float [ ] _a , _e ; <nb> public abstract class Layer extends Iced { public static void shareWeights ( Layer src , Layer dst...
Make params public and add size guards during sharing of layer weights and biases
<nb> public abstract class Extractor implements EmbeddedPersistable { } if ( ! converter . buildsMultipleFields ( ) ) { + Object converted = converter . convert ( ( String ) msg . getFields ( ) . get ( targetField ) ) ; + + SINGLE msg . removeField ( targetField ) ; - msg . addField ( targetField , conv...
failing converters could break extractors
<nb> public class HadoopStoreJobRunner extends Configured implements Tool { } public static void main ( String [ ] args ) { - int res ; + int res = NUMBER0 ; SINGLE try { res = ToolRunner . run ( new Configuration ( ) , new HadoopStoreJobRunner ( ) , args ) ; - System . exit ( res ) ; } catch ( Except...
Fix SecurityException when running HadoopStoreJobRunner in oozie
<nb> public abstract class GroovyNamedArgumentProvider { @ nullable String argumentName , boolean forCompletion , Map < String , NamedArgumentDescriptor > result ) { - throw new UnsupportedOperationException ( ) ; + SINGLE } public void getNamedArguments ( @ notnull GrCall call ,
groovy fix tests
<nb> import NAMESPACE ; import NAMESPACE ; import static NAMESPACE ; + import static NAMESPACE ; COMMENT COMMENT <nb> public class AsyncClusterBinding extends AbstractReferenceCounted implements Asy public AsyncClusterBinding ( final Cluster cluster , final ReadPreference readPreference , final lo...
Added notNull tests to AsyncClusterBinding
<nb> public abstract class TWAbsLayoutManager extends LayoutManager { @ override public void onLayoutChildren ( Recycler recycler , State state ) { - int pendingScrollPosition = getPendingScrollPosition ( ) ; - if ( pendingScrollPosition != RecyclerView . NO_POSITION ) { - if ( pendingScrollPosition < NUMBE...
core Rename local variable for consistency
<nb> public final class MediaStore { baseUri . buildUpon ( ) . appendPath ( String . valueOf ( origId ) ) . toString ( ) . replaceFirst ( STRING0 , STRING1 ) ) ; if ( filePath == null ) { + if ( c != null ) c . close ( ) ; c = cr . query ( uri , PROJECTION , null , null , null ) ; if ( c == null || ! c . mo...
Close the cursor before assigning a new one to the same variable
<nb> public class AudioplayerActivity extends MediaplayerActivity { private Fragment currentlyShownFragment ; private int currentlyShownPosition = - NUMBER0 ; + COMMENT + private int savedPosition = - NUMBER0 ; private TextView txtvTitle ; private TextView txtvFeed ; <nb> public class AudioplayerActiv...
Audioplayer didn t always restore its state correctly
<nb> public class AndroidDatabaseResults implements DatabaseResults { return new ByteArrayInputStream ( cursor . getBlob ( jdbcColumnIndexToAndroid ( columnIndex ) ) ) ; } - public boolean isNull ( int columnIndex ) throws SQLException { + public boolean wasNull ( int columnIndex ) throws SQLException { ret...
Changed the result handling from isNull getResult to be getResult wasNull
<nb> final class ReplayOutputChannelBroker extends AbstractOutputChannelForwarder imp } } else if ( event instanceof ReceiverNotFoundEvent ) { final ReceiverNotFoundEvent rnfe = ( ReceiverNotFoundEvent ) event ; - LOG . warn ( STRING0 + rnfe . getReceiverID ( ) + STRING1 + rnfe . getSequenceNumber ( ) ) ; + L...
Fixed bug in restart logic of ReplayThread
<nb> public class CallbackServer implements Runnable { SINGLE if ( this . empty ) { SINGLE - response = STRING0 ; + response = STRING1 ; SINGLE } else { SINGLE <nb> public class CallbackServer implements Runnable { } } else { - response = STRING2 ; + response = STRING3 ; } } else { -...
Fix problem with CallbackServer for certain HTC phones
<nb> public class TextView extends View implements ViewTreeObserver . OnPreDrawListener vibrate = false ; } - if ( ! handled && ( mEditor == null || getEditor ( ) . mSelectionActionMode != null ) ) { + if ( ! handled && mEditor != null && getEditor ( ) . mSelectionActionMode != null ) { if ( touchPositionIs...
Fix crash on long press in TextView
<nb> public class EventBusProvider implements Provider < EventBus > { @ override public EventBus get ( ) { - System . out . println ( this . getClass ( ) . getCanonicalName ( ) + STRING0 ) ; return new AsyncEventBus ( STRING1 , Executors . newFixedThreadPool ( configuration . getAsyncEventbusProcessors ( ...
Removing debug output
<nb> public class HTMLPreviewPanel extends ResizeComposite { getWindow ( ) . replaceLocationHref ( url ) ; } + + getWindow ( ) . focus ( ) ; + return false ; } else
set focus to html preview frame on load
<nb> import NAMESPACE ; import NAMESPACE ; final class MethodHandler { - @ suppresswarnings ( STRING0 ) static MethodHandler create ( Retrofit retrofit , Method method ) { CallAdapter < ? > callAdapter = createCallAdapter ( method , retrofit ) ; Type responseType = callAdapter . responseType ( ) ;
Remove needless unchecked suppression
<nb> public class TAsyncMethodCallDoReadingResponseBodyInterceptor extends TAsyncMeth return ; } trace . markAfterTime ( ) ; - trace . traceBlockEnd ( ) ; + SINGLE trace . close ( ) ; super . traceContext . removeTraceObject ( ) ; } <nb> public class TAsyncMethodCallDoWritingRequestBodyInterceptor ext...
remove unused traceBlockBegin End
<nb> COMMENT package NAMESPACE ; - import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; - import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> class CommitP...
remove unused method reformat optimize imports
<nb> public class GenericsHighlightUtil { @ nullable public static HighlightInfo checkUncheckedGenericsArrayCreation ( PsiJavaCodeReferenceElement referenceExpression , PsiElement resolved ) { + final HighlightDisplayKey key = HighlightDisplayKey . find ( UncheckedWarningLocalInspection . SHORT_NAME ) ; + if ...
disable unchecked generics array creation in varargs when corresponding fake inspection is disabled