diff
stringlengths
38
1.78k
msg_token
stringlengths
9
190
<nb> public class OpenIEITest { setProperty ( STRING0 , STRING1 ) ; setProperty ( STRING2 , STRING3 ) ; setProperty ( STRING4 , STRING5 ) ; - setProperty ( STRING6 , STRING7 ) ; + SINGLE setProperty ( STRING8 , STRING5 ) ; setProperty ( STRING9 , STRING10 ) ;
Restore OpenIEITest to default model path
<nb> public class CommitLogSegment long currentPosition = - NUMBER0 ; try { - currentPosition = logWriter . getFilePointer ( ) ; - assert currentPosition <= Integer . MAX_VALUE ; - ReplayPosition cLogCtx = new ReplayPosition ( id , ( int ) currentPosition ) ; + ReplayPosition cLogCtx = getContext ( ) ; ...
clean up duplicate code
<nb> public class AndroidLogHandler extends Handler { SINGLE int priority = getAndroidLevel ( level ) ; - COMMENT if ( ! Debug . DEBUG_ENABLED ) { return ; - COMMENT + } try { Log . println ( priority , tag , message ) ;
only enable logs if debug is enabled
<nb> public class CardArrayAdapter extends BaseCardArrayAdapter implements UndoBarCon itemIds [ i ] = card . getId ( ) ; i ++ ; + if ( card . isExpanded ( ) ) { + if ( card . getCardView ( ) != null && card . getCardView ( ) . getOnExpandListAnimatorListener ( ) != null ) { + SINGLE + card . getCardView (...
when I remove an expanded card the other cards don t use the removed space of the expanded card
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; + import NAMESPACE ; public final class ActionManagerImpl extends ActionManagerEx implements ApplicationComponent { @ nonnls public static final String ACTION_ELEMENT_NAME = STRING0 ; <nb> public final class ActionManagerIm...
closed project leak test
<nb> public abstract class AbstractMessageFormatter implements MessageFormatter { private static enum Color { ERROR ( STRING0 ) , WARNING ( STRING1 ) , - RESET ( STRING2 ) ; + RESET ( STRING3 ) ; private final String controlCharacter ;
Turn off BOLD when doing color reset
<nb> public class TextEditingTarget implements doCommentUncomment ( STRING0 , null ) ; else if ( isCursorInRMode ( ) || isCursorInYamlMode ( ) ) doCommentUncomment ( STRING1 , null ) ; - else if ( fileType_ . isCpp ( ) || fileType_ . isStan ( ) ) + else if ( fileType_ . isCpp ( ) || fileType_ . isStan ( ) || ...
enable comment uncomment for C files
<nb> COMMENT package NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> public abstract class VirtualFile extends UserDataHolderBase implements Modifica } public void setBinaryContent ( @ notnull byte [ ] content , long newModificationStamp , long newTim...
write vfs in write action
<nb> public class ChatPanel extends JPanel else if ( o instanceof MessageReceivedEvent ) { MessageReceivedEvent evt = ( MessageReceivedEvent ) o ; - if ( ! evt . getTimestamp ( ) . equals ( lastMsgTimestamp ) ) { + if ( evt . getTimestamp ( ) . compareTo ( lastMsgTimestamp ) < NUMBER0 ) { conversationPanel ...
when new message is received remove this message from loaded history messages
<nb> public abstract class AbstractDatabase implements Database { } else if ( dataType == Types . BIGINT ) { return new BigInteger ( value ) ; } else if ( dataType == Types . BIT ) { + value = value . replaceFirst ( STRING0 , STRING1 ) ; SINGLE if ( value . equalsIgnoreCase ( STRING2 ) ) { return Boolean . ...
handle bit types in mysql correctly
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; - import NAMESPACE ; - COMMENT COMMENT COMMENT <nb> public class GotoDomElementDeclarationAction extends BaseDomTreeAction { DomElementsNavigationManager . getManager ( domElement . getManager ( ) . getProject ( ) ) . getDomElementsNaviga...
set icons in captions of jsf forms
<nb> import NAMESPACE ; import NAMESPACE ; - import static NAMESPACE ; + import static NAMESPACE ; COMMENT COMMENT
Choose more specific imort
<nb> public class Notification implements Parcelable COMMENT COMMENT COMMENT - private static class Action implements Parcelable { + public static class Action implements Parcelable { public int icon ; public CharSequence title ; public PendingIntent actionIntent ; <nb> public class Notification imple...
Make Notification action data structures public
<nb> public class Murmur3Partitioner extends AbstractPartitioner < LongToken > public Token < Long > fromString ( String string ) { - return new LongToken ( Long . valueOf ( string ) ) ; + try + { + return new LongToken ( Long . valueOf ( string ) ) ; + } + catch ( NumberFormatException e ) + { + ...
Improve error message
<nb> public class AudioService extends IAudioService . Stub { streamType = getActiveStreamType ( suggestedStreamType ) ; } - SINGLE + SINGLE if ( ( streamType != STREAM_REMOTE_MUSIC ) && ( flags & AudioManager . FLAG_PLAY_SOUND ) != NUMBER0 && - ( ( mStreamVolumeAlias [ streamType ] != AudioSystem . STR...
allow dialog to play sound over keyguard
<nb> public class RecyclerView extends ViewGroup implements ScrollingView , NestedScro COMMENT COMMENT COMMENT - COMMENT + COMMENT COMMENT @ override public int computeHorizontalScrollOffset ( ) { <nb> public class RecyclerView extends ViewGroup implements ScrollingView , NestedScro COMMENT COMMEN...
Fix RecyclerView LayoutManager javadoc references
<nb> public class CodePrinterTest extends TestCase { + STRING0 ) ; } + public void testTypeAnnotationsTypeDef ( ) { + SINGLE + SINGLE + SINGLE + assertTypeAnnotations ( + STRING1 + + STRING2 + + STRING3 , + STRING4 + + STRING5 + + STRING6 + + STRING7 + + STRING8 + + STRING9 ) ; + } ...
Add a unit test showing how typedefs are handled by the
<nb> public class StructuralSearchTest extends StructuralSearchTestCase { findMatchesCount ( s81_5 , STRING0 ) ) ; - String source1 = STRING1 ; + String source1 = STRING2 ; String target1 = STRING3 ; assertEquals ( STRING4 , <nb> public class StructuralSearchTest extends StructuralSearchTestCase { f...
add some tests for parameterized types
<nb> public class RequestFacade implements HttpServletRequest { COMMENT COMMENT - COMMENT + COMMENT COMMENT COMMENT COMMENT <nb> public abstract class LifecycleMBeanBase extends LifecycleBase COMMENT COMMENT - COMMENT - COMMENT + COMMENT + COMMENT COMMENT COMMENT COMMENT <nb> pub...
Fix Javadoc warnings
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> public class SoftBodyTest extends BaseBulletTest { texture = new Texture ( Gdx . files . internal ( STRING0 ) ) ; model = ModelBuilder...
Fix soft body face culling
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; + import NAMESPACE ; COMMENT <nb> public class IpManager extends StateMachine { return delta ; } + private boolean linkPropertiesUnchanged ( LinkProperties newLp ) { + synchronized ( mLock ) { + return Objects ....
Ignore link properties updates when nothing actually changed
<nb> public abstract class AbstractChannel extends DefaultAttributeMap implements Cha private static final Random random = new Random ( ) ; - public static Random getRandom ( ) { - return random ; - } - COMMENT COMMENT COMMENT
Remove function getRandom
<nb> public class KeySetManagerService { pw . println ( STRING0 ) ; } printedLabel = false ; - for ( long keySetId : pkg . keySetData . getSigningKeySets ( ) ) { - if ( ! printedLabel ) { - pw . print ( STRING1 ) ; - printedLabel = true ; - } else { - pw . print ( STRING2 ) ; + final long [ ] signin...
Fix crash in KeySet dump
<nb> public class ObjectStoreEnvironmentElement extends AbstractModelElement < ObjectSt @ override public void writeContent ( XMLExtendedStreamWriter streamWriter ) throws XMLStreamException { streamWriter . writeAttribute ( Attribute . PATH . getLocalName ( ) , directory ) ; + streamWriter . writeAttribute ( A...
write relative to attribute
<nb> final class Utils { COMMENT COMMENT COMMENT - COMMENT + COMMENT COMMENT static final boolean peekAny ( char [ ] sqlChars , int index , String [ ] peekAny ) { for ( String peek : peekAny )
Fixed Javadoc warning
<nb> public class SubstitutingScope implements JetScope { if ( substitutor . isEmpty ( ) ) return descriptors ; if ( descriptors . isEmpty ( ) ) return descriptors ; - Set < D > result = Sets . newHashSet ( ) ; + Set < D > result = Sets . newHashSetWithExpectedSize ( descriptors . size ( ) ) ; for ( D descr...
Avoiding rehashes profiling results improved
<nb> COMMENT - COMMENT + COMMENT COMMENT COMMENT COMMENT <nb> COMMENT - COMMENT + COMMENT COMMENT COMMENT COMMENT <nb> COMMENT - COMMENT + COMMENT COMMENT COMMENT COMMENT
Fix dates in license headers
<nb> package NAMESPACE ; import NAMESPACE ; import NAMESPACE ; - import NAMESPACE ; - import NAMESPACE ; import NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> public final class Iterables { return elements [ NUMBER0 ] ; } - @ suppresswarnings ( STRING0 ) publ...
removed unused code from moco rest and iterables
<nb> public class ASTHelpers { } COMMENT - COMMENT - COMMENT - COMMENT - COMMENT - public static MethodSymbol findSuperMethod ( MethodSymbol method , Types types ) { - TypeSymbol superClass = method . enclClass ( ) . getSuperclass ( ) . tsym ; - if ( superClass == null ) { - return null ; - } ...
Delete unused and misguided findSuperMethod
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; <nb> public class ZygoteInit { } public static void main ( String argv [ ] ) { + SINGLE + SINGLE + ZygoteHooks . startZygoteNoThreadCreation ( ) ; + try { Trace . tr...
Add no thread marking to zygote
<nb> 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 PyCallExpressionHelper { } } SINGLE + else if ...
handle long module quelifiers
<nb> public class StreetUtils { COMMENT for ( HashSet < Vertex > island : islands ) { - if ( island . size ( ) < NUMBER0 ) { + if ( island . size ( ) < NUMBER1 ) { _log . warn ( GraphBuilderAnnotation . register ( graph , Variety . GRAPH_CONNECTIVITY , island . iterator ( ) . next ( ) , island ) ) ; dep...
handle slightly larger floating islands like Pedways in Chicago
<nb> public class SmsRestoreService extends ServiceBase { @ override public void onCreate ( ) { - clearCache ( ) ; + asyncClearCache ( ) ; BinaryTempFileBody . setTempDirectory ( getCacheDir ( ) ) ; } <nb> public class SmsRestoreService extends ServiceBase { } } + private synchronized void asy...
Push clearing in the background to avoid ANR
<nb> import static NAMESPACE ; COMMENT public final class IncludeCategories extends CategoryFilterFactory { COMMENT - COMMENT - COMMENT + COMMENT + COMMENT COMMENT COMMENT COMMENT
Rewrite JavaDoc of IncludeCategories createFilter Class
<nb> public class SearchPanel this . historyWindow = historyWindow ; - this . setBorder ( BorderFactory . createTitledBorder ( Messages - . getString ( STRING0 ) ) ) ; SINGLE + this . setBorder ( BorderFactory . createCompoundBorder ( + BorderFactory . createTitledBorder ( Messages . getString ( STRING0 )...
indent Search label
<nb> public class ChatServlet throws IOException , ServletException { InputStream is = request . getInputStream ( ) ; byte [ ] buf = new byte [ NUMBER0 ] ; - do { + while ( is . available ( ) > NUMBER1 ) { + log ( STRING0 + is . available ( ) ) ; int n = is . read ( buf ) ; if ( n > NUMBER1 ) { log ( ...
New read loop much more conventional using the more accurate InputStream available method
<nb> public class DanmakuTextureView extends TextureView implements IDanmakuView , @ targetapi ( Build . VERSION_CODES . HONEYCOMB ) private void init ( ) { + setLayerType ( View . LAYER_TYPE_HARDWARE , null ) ; setOpaque ( false ) ; setWillNotCacheDrawing ( true ) ; setDrawingCacheEnabled ( false ) ;
enable Hardware Acceleration at initialization
<nb> public class ODistributedResponseManager { try { long currentTimeout = synchTimeout ; - while ( currentTimeout > NUMBER0 && ( waitForLocalNode && ! receivedCurrentNode ) || receivedResponses < expectedSynchronousResponses ) { + while ( currentTimeout > NUMBER0 && ( ( waitForLocalNode && ! receivedCurrent...
Fixed issue on replication when a node dies
<nb> public final class CFMetaData if ( indexInterval != rhs . indexInterval ) return false ; if ( ! Objects . equal ( speculativeRetry , rhs . speculativeRetry ) ) return false ; if ( populateIoCacheOnFlush != rhs . populateIoCacheOnFlush ) return false ; - if ( Objects . equal ( droppedColumns , rhs . dropped...
Fix CFMetaData equals
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> public class KeywordTypedHandler extends TypedHandlerDelegate { @ override public Result beforeCharTyped ( char character , Project project , Editor edit...
Python typed handler works only in Python code
<nb> public class AsyncMiddleManServlet extends AbstractProxyServlet while ( input . isReady ( ) && ! input . isFinished ( ) ) { int read = readClientRequestContent ( input , buffer ) ; + if ( _log . isDebugEnabled ( ) ) _log . debug ( STRING0 , getRequestId ( clientRequest ) , read , input ) ; + if ( r...
Implement an async proxy servlet that can perform content transformations
<nb> public class CompletionRequester String argName = argNames . get ( j ) ; if ( argName . startsWith ( token ) ) { + SINGLE newComp . add ( new QualifiedName ( argName , - functionName + STRING0 ) ) ; } } SINGLE if ( functionName . startsWith ( token ) ) { + SINGLE newComp . add ( new...
don t include function name unless we can resolve docs
<nb> public class GImpactCollisionShape extends CollisionShape { numTriangles = mesh . getTriangleCount ( ) ; triangleIndexStride = NUMBER0 ; SINGLE - IndexBuffer indices = mesh . getIndexBuffer ( ) ; + IndexBuffer indices = mesh . getIndicesAsList ( ) ; FloatBuffer vertices = mesh . getFloatBuffer ( Type ....
Mesh GImpact collision shapes now support triangle strips fans through Mesh getIndicesAsList method
<nb> public class GrokPattern { public String toString ( ) { return MoreObjects . toStringHelper ( this ) . add ( STRING0 , id ) - . add ( STRING1 , name ) - . add ( STRING2 , pattern ) + . add ( STRING3 , name ) + . add ( STRING4 , pattern ) . add ( STRING5 , contentPack ) . toString ( ) ; }
Remove superfluous characters in GrokPattern toString
<nb> public class DefaultRequest implements Request { @ override public void text ( final Closure < ? > textReceiver ) { - buffer ( new ClosureHandlerAdapter < Buffer > ( textReceiver ) ) ; + text ( new ClosureHandlerAdapter < String > ( textReceiver ) ) ; } @ override public void json ( final Closure...
Fix closure handlers
<nb> import NAMESPACE ; COMMENT COMMENT COMMENT - COMMENT + COMMENT COMMENT COMMENT COMMENT
Fixed javadoc link
<nb> import NAMESPACE ; @ notthreadsafe @ path ( LineageMasterClientRestServiceHandler . SERVICE_PREFIX ) @ produces ( MediaType . APPLICATION_JSON ) - public final class LineageMasterClientRestServiceHandler { private static final Logger LOG = LoggerFactory . getLogger ( Constants . LOGGER_TYPE ) ;
SMALLFIX Remove unnecessary empty line
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> class InlineMethodHandler extends JavaInlineActionHandler { } public boolean canInlineElement ( PsiElement element ) { - return element instanceof PsiM...
allow the java inline handler to inline only java methods
<nb> import NAMESPACE ; COMMENT COMMENT COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT COMMENT public class Setting < T > extends ToX...
Add more javadocs to Setting java
<nb> public class JavaGenerator implements CodeGenerator sb , propertyName , sizeOfLengthField , - fullMutableBufferImplementation , + fullReadOnlyBufferImplementation , lengthJavaType , lengthTypePrefix , byteOrderStr ) ;
use the readonly buffer interface when you just need that
<nb> public class OStorageRemote extends OStorageAbstract implements OStorageProxy { do { do { try { - final byte [ ] curToken = tokens . get ( currentURL ) ; + network = getAvailableNetwork ( currentURL ) ; + final byte [ ] curToken = tokens . get ( network . getServerURL ( ) ) ; if ( curToken == null ||...
fixed reopen connection client implamentation now it get the right token for the right connection
<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 ; import NAMESPACE ; import NAMESPACE ; import NAMESP...
Fixed SASL PLAIN problem with Pidgin
<nb> public class BorderLayoutPanel extends JPanel { super ( new BorderLayout ( hgap , vgap ) ) ; } + public BorderLayoutPanel add ( Component comp ) { + return addToCenter ( comp ) ; + } + public BorderLayoutPanel addToCenter ( Component comp ) { add ( comp ) ; return this ;
add utility method add which is the same as addToCenter
<nb> public class FritzboxBinding implements ManagedService { } public void deactivate ( ) { - monitorThread . interrupt ( ) ; + if ( monitorThread != null ) { + monitorThread . interrupt ( ) ; + } monitorThread = null ; }
Fixed potential NPE on shutdown
<nb> public abstract class LzoProtobufB64LineOutputFormat < M extends Message , W extend typeRef_ = typeRef ; } - public RecordWriter getRecordWriter ( TaskAttemptContext job ) + public RecordWriter < NullWritable , W > getRecordWriter ( TaskAttemptContext job ) throws IOException , InterruptedException { ...
Fix unchecked conversion warnings in return type of getRecordWriter
<nb> public class FloatTextureData implements TextureData { public boolean isManaged ( ) { return true ; } + + public FloatBuffer getBuffer ( ) { + return buffer ; + } }
Added getter for FloatTextureData buffer
<nb> public class LockPatternView extends View { mExploreByTouchHelper = new PatternExploreByTouchHelper ( this ) ; setAccessibilityDelegate ( mExploreByTouchHelper ) ; mAudioManager = ( AudioManager ) mContext . getSystemService ( Context . AUDIO_SERVICE ) ; + a . recycle ( ) ; } public CellState [ ] [ ]...
Recycle TypedArray in LockPatternView
<nb> import NAMESPACE ; COMMENT COMMENT COMMENT - COMMENT COMMENT public class FileGraphSource implements GraphSource { <nb> public class FileGraphSource implements GraphSource { } } else { Graph newGraph = loadGraph ( ) ; - if ( graph != null ) - decorator . shutdownGraph ( graph ) ; - SING...
Do not shutdown graph updater if load failed
<nb> import NAMESPACE ; public abstract class AppIntro2 extends AppCompatActivity { public final static int DEFAULT_COLOR = NUMBER0 ; - + private static final int DEFAULT_SCROLL_DURATION_FACTOR = NUMBER0 ; + private PagerAdapter mPagerAdapter ; private ViewCustomPagerDuration pager ; private List < Fr...
adds setScrollDurationFactor to AppIntro2
<nb> public class ParserATNSimulator extends ATNSimulator { public static final boolean dfa_debug = false ; public static final boolean retry_debug = false ; - public static final boolean TURN_OFF_LR_LOOP_ENTRY_BRANCH_OPT = Boolean . parseBoolean ( System . getProperty ( STRING0 ) ) ; + COMMENT + public sta...
make the switch an ENV not property
<nb> public class BazelConfiguration extends Fragment { return ; } } + if ( OS . getCurrent ( ) == OS . FREEBSD ) { + String path = System . getenv ( STRING0 ) ; + if ( path != null ) { + builder . put ( STRING1 , new PathFragment ( path ) ) ; + } else { + builder . put ( STRING1 , new PathFragment ( ...
On FreeBSD don t assume bash to be installed under bin
<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 ; public class HgBranchUtil { <nb> publi...
only opened branches should be shown as common in branches widget
<nb> public class TaskPersister { private static void removeObsoleteFiles ( ArraySet < Integer > persistentTaskIds , File [ ] files ) { if ( DEBUG ) Slog . d ( TAG , STRING0 + persistentTaskIds + STRING1 + files ) ; + if ( files == null ) { + Slog . e ( TAG , STRING2 ) ; + return ; + } for ( int fileNdx...
Add null check to TaskPersister file list
<nb> public class TexturePacker { else { SINGLE float scaleValue = scale [ scaleIndex ] ; - if ( scaleValue != NUMBER0 || scale . length != NUMBER0 ) { + if ( scale . length != NUMBER0 ) { packFileName = ( scaleValue == ( int ) scaleValue ? Integer . toString ( ( int ) scaleValue ) : Float . toString ( scal...
Only create subdirs if more than one scale
<nb> package NAMESPACE ; import NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> abstract class JvmUtils { String javaHome = getJavaHome ( ) ; for ( String location : TOOLS_LOCATIONS ) { try { - URL url = new URL ( STRING0 + javaHome + STRING1 + location ) ; + URL ur...
Normalize paths in JvmUtils
<nb> public class AutomationClientAuthFactory { public AutomationClient provide ( ContainerRequest request ) { Optional < String > possibleClientName = ClientAuthFactory . getClientName ( request ) ; if ( ! possibleClientName . isPresent ( ) ) { - throw new NotAuthorizedException ( format ( STRING0 ) ) ; + th...
Remove unnecessary String format
<nb> public class WindowListAdapter extends BaseAdapter implements UpdateCallback { } public void setSessions ( SessionList sessions ) { + boolean needUpdate = ( sessions != null ) || ( mSessions != null ) ; mSessions = sessions ; - if ( sessions != null ) { + if ( needUpdate ) { onUpdate ( ) ; } } ...
Improve change detection logic
<nb> public class BaseDependencyManager extends DefaultDependencyContainer if ( ! GUtil . isTrue ( confs ) ) { throw new InvalidUserDataException ( String . format ( STRING0 , taskName ) ) ; } - Set < File > paths = new HashSet < File > ( ) ; + Set < File > paths = new LinkedHashSet < File > ( ) ; for ( Str...
Guaranteeing a defined and reproducible order of the classpath
<nb> public class TestContextManager { if ( logger . isWarnEnabled ( ) ) { logger . warn ( STRING0 + testExecutionListener + STRING1 + testClass + STRING2 , ex ) ; - if ( afterTestClassException == null ) { - afterTestClassException = ex ; - } + } + if ( afterTestClassException == null ) { + afterTest...
Ensure TestContextManager always tracks after class exception
<nb> public class ShiftTransition implements Transition { } SINGLE SINGLE + SINGLE + SINGLE if ( state . stack . size ( ) > NUMBER0 ) { Tree top = state . stack . peek ( ) ; SINGLE
Add a comment on a shift transition restriction
<nb> public class VoiceInteractionServiceInfo { mParseError = STRING0 ; return ; } + COMMENT if ( mRecognitionService == null ) { mParseError = STRING1 ; return ; - } + COMMENT } catch ( XmlPullParserException e ) { mParseError = STRING2 + e ; Log . w ( TAG , STRING3 , e ) ;
Turn off voice interaction service restrction for now
<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 ; ...
Removed obsolete imports
<nb> implements SettableHiveDecimalObjectInspector { @ override public HiveDecimalWritable getPrimitiveWritableObject ( Object o ) { + if ( o == null ) { + return null ; + } return enforcePrecisionScale ( ( ( HiveDecimalWritable ) o ) ) ; } @ override public HiveDecimal getPrimitiveJavaObject ( Ob...
Null values in DECIMAL columns cause serialization issues with HCatalog Craig Condit via Navis
<nb> public class SplitZipStep implements Step { BufferedWriter writer , List < Path > jarFiles , DexStore dexStore ) throws IOException { + if ( DexStore . RAW . equals ( dexStore ) ) { + writer . write ( STRING0 ) ; + writer . newLine ( ) ; + } for ( int i = NUMBER0 ; i < jarFiles . size ( ) ; i ++ ) ...
Make sure RAW dex stores are marked root relative in the metadata file
<nb> public final class Http20Draft09 implements Variant { out . flush ( ) ; } - @ override public void ackSettings ( ) throws IOException { + @ override public synchronized void ackSettings ( ) throws IOException { SINGLE out . writeInt ( NUMBER0 | ( TYPE_SETTINGS & NUMBER1 ) < < NUMBER2 | ( FLAG_ACK & N...
Synchronize when acking settings
<nb> final class HdmiCecKeycode { } return false ; } + + COMMENT + COMMENT + COMMENT + static boolean isSupportedKeycode ( int androidKeycode ) { + return HdmiCecKeycode . androidKeyToCecKey ( androidKeycode ) + != HdmiCecKeycode . UNSUPPORTED_KEYCODE ; + } } <nb> final class HdmiCecLocalDevic...
Fix a bug that the HdmiCecLocalDeviceTv sends User Control Released message for unsupported keys
<nb> public class FeedEntryStatusDAO extends GenericDAO < FeedEntryStatus > { query . orderBy ( status . entryUpdated . desc ( ) , status . id . desc ( ) ) ; } - query . offset ( offset ) . limit ( limit ) . setTimeout ( config . getApplicationSettings ( ) . getQueryTimeout ( ) ) ; + query . offset ( offset )...
correctly set timeout on query
<nb> public class MapActivity extends AccessibleActivity implements IMapLocationListe FrameLayout . LayoutParams params = new FrameLayout . LayoutParams ( LayoutParams . WRAP_CONTENT , LayoutParams . WRAP_CONTENT , Gravity . CENTER_HORIZONTAL | Gravity . TOP ) ; DisplayMetrics dm = getResources ( ) . getDisplayMe...
slightly change ui
<nb> public abstract class StatsAbstractListFragment extends StatsAbstractFragment { @ override public void onSaveInstanceState ( Bundle outState ) { SINGLE + + SINGLE + if ( mDatamodels != null ) { + for ( int i = NUMBER0 ; i < mDatamodels . length ; i ++ ) { + if ( mDatamodels [ i ] instanceof VolleyE...
Do not serialize VolleyErrors
<nb> public class ApplicationEx extends Application { @ override public void onCreate ( ) { + super . onCreate ( ) ; + Util . log ( null , Log . WARN , STRING0 ) ; mPrevHandler = Thread . getDefaultUncaughtExceptionHandler ( ) ; Thread . setDefaultUncaughtExceptionHandler ( new Thread . UncaughtExceptio...
Call Application super onCreate
<nb> public abstract class ChangesTreeList < T > extends JPanel { setShowFlatten ( PropertiesComponent . getInstance ( myProject ) . isTrueValue ( FLATTEN_OPTION_KEY ) ) ; String emptyText = StringUtil . capitalize ( DiffBundle . message ( STRING0 , NUMBER0 ) ) ; + setEmptyText ( emptyText ) ; + } + + pub...
show No commits selected instead of No differences if the cursor stays on a repository or on a branch
<nb> public interface TelephonyProperties COMMENT COMMENT static final String PROPERTY_SIM_COUNT = STRING0 ; - - COMMENT - COMMENT - COMMENT - COMMENT - COMMENT - COMMENT - static final String PROPERTY_DBG_IMS_VOLTE_ENABLE = STRING1 ; - - static final int PROPERTY_DBG_IMS_VOLTE_ENABLE_DEAFULT ...
Revert Added debug system property to enable disable IMS VoLTE VT
<nb> public class AddinsMRUList implements SessionInitHandler , List < KeySequence > keys = keyMap . getBindings ( addin . getId ( ) ) ; if ( keys != null && ! keys . isEmpty ( ) ) command . setShortcut ( new KeyboardShortcut ( keys . get ( NUMBER0 ) ) ) ; + else + command . setShortcut ( null ) ; } pub...
need to unset shortcuts for mru commands
<nb> COMMENT - COMMENT + COMMENT COMMENT COMMENT COMMENT <nb> import NAMESPACE ; COMMENT COMMENT COMMENT - COMMENT + COMMENT COMMENT COMMENT COMMENT
Fix typo in AbstractDelegatingSmartContextLoader
<nb> public class TestNamingEntries { ScopeA scope = new ScopeA ( ) ; InitialContext icontext = new InitialContext ( ) ; - Link link = new Link ( STRING0 , STRING1 ) ; - NamingEntry ne = NamingEntryUtil . lookupNamingEntry ( null , STRING0 ) ; + Link link = new Link ( STRING2 , STRING1 ) ; + NamingEntry n...
jetty plus JNDI tests should use unique JNDI paths
<nb> package NAMESPACE ; import NAMESPACE ; import NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> public class ApkDecoder { private void putPackageInfo ( Map < String , Object > meta ) throws AndrolibException { String renamed = getResTable ( ) . getPa...
Some APKs are reporting wrong pkgId
<nb> public class PatternRuleTest extends TestCase { System . err . println ( STRING0 + lang . toString ( ) + STRING1 + rule . getId ( ) + STRING2 + rule . getSubId ( ) + STRING3 + i + STRING4 - + STRING5 + i + STRING6 + STRING7 + STRING8 + STRING9 ) ;
warning was repeating token index twice
<nb> public class Setting < T > extends ToXContentToBytes { return parser . apply ( value ) ; } catch ( ElasticsearchParseException ex ) { throw new IllegalArgumentException ( ex . getMessage ( ) , ex ) ; + } catch ( NumberFormatException ex ) { + throw new IllegalArgumentException ( STRING0 + value + STRING1...
fix more excpption useage
<nb> public class ShadowTypedArray { public int getResourceId ( int index , int defValue ) { return defValue ; } + + @ implementation + public float getDimension ( int index , float defValue ) { + return defValue ; + } } <nb> public class TypedArrayTest { public void getResourceId_shouldReturnDefa...
Adds ShadowTypedArray getDimension int float
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; - import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> public class Catalina { if ( catalinaHome == null ) { if ( System . getProperty ( Globals . CATALINA_BASE_PROP ) != null ) { catalinaH...
Remove code that was added for handling the embedded case
<nb> public class PyUtil { return null ; } PsiElement parent = elt . getParent ( ) ; + boolean jump_over = false ; while ( parent != null ) { if ( parent instanceof PyClass || parent instanceof Callable ) { - return parent ; + if ( jump_over ) jump_over = false ; + else return parent ; } - if ( pa...
make getConcealingParent respect decorators scope
<nb> import NAMESPACE ; COMMENT public class MetricsEmittingQueryRunner < T > implements QueryRunner < T > { - private static String DEFAULT_METRIC_NAME = STRING0 ; + private static final String DEFAULT_METRIC_NAME = STRING0 ; private final ServiceEmitter emitter ; private final Function < Query < T > ,...
add missing final
<nb> public class XPrivacy implements IXposedHookLoadPackage , IXposedHookZygoteInit { if ( STRING0 . equals ( instance . getClass ( ) . getName ( ) ) ) { Util . log ( hook , Log . WARN , STRING1 + Context . TELEPHONY_SERVICE ) ; - for ( Method method : instance . getClass ( ) . getDeclaredMethods ( ) ) - Uti...
Log super class names
<nb> public class RouteResultPreparation { if ( attached . getObject ( ) . getOneway ( ) == NUMBER0 ) { lns = countLanes ( attached , lns ) ; } - if ( lns > NUMBER0 ) { + if ( lns <= NUMBER0 ) { + right += NUMBER1 ; + } else { right += lns ; } speak = speak || rsSpeakPriority <= speakPriority ; <n...
Fix error caused by missing lane tags
<nb> package NAMESPACE ; - import NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> public class AssetTypeHandler < T extends Asset > extends StringRepresentationTypeH @ override public T getFromString ( String representation ...
Allow components to have empty assets fields
<nb> final class Span implements DataPoints { } public void seek ( final long timestamp ) { - row_index = seekRow ( timestamp ) ; - current_row = rows . get ( row_index ) . internalIterator ( ) ; + short row_index = seekRow ( timestamp ) ; + if ( row_index != this . row_index ) { + this . row_index = ro...
Don t unnecessarily create new iterators
<nb> public class ClientCountDownLatchTest { static HazelcastInstance hz ; static ICountDownLatch l ; - @ beforeclass + @ before public static void init ( ) { Hazelcast . newHazelcastInstance ( ) ; hz = HazelcastClient . newHazelcastClient ( null ) ; l = hz . getCountDownLatch ( name ) ; } - @ b...
I should not shutdown the server and client before the test is run
<nb> public class ByteRenderer implements AttributeRenderer { public String toString ( Object o , String s ) { if ( s . equals ( STRING0 ) ) { Byte b = ( Byte ) o ; - return STRING1 + Integer . toHexString ( b & NUMBER0 ) ; + return STRING1 + Integer . toHexString ( b & NUMBER0 ) + STRING2 ; } return toSt...
Fixed the unsigned byte format so that it includes the training t
<nb> public class GitLogProvider implements VcsLogProvider { List < String > filterParameters = ContainerUtil . newArrayList ( ) ; - if ( filterCollection . getBranchFilter ( ) != null ) { + if ( filterCollection . getBranchFilter ( ) != null && ! filterCollection . getBranchFilter ( ) . getBranchNames ( ) . ...
log basic support negated branches for git hg providers
<nb> public class SwitchUserProcessingFilterTests { SimpleUrlAuthenticationSuccessHandler switchSuccessHandler = new SimpleUrlAuthenticationSuccessHandler ( STRING0 ) ; DefaultRedirectStrategy contextRelativeRedirector = new DefaultRedirectStrategy ( ) ; - contextRelativeRedirector . setUseRelativeContext ( tru...
Renamed useRelativeContext to contextRelative to match corresponding flag name in Spring Framework