diff
stringlengths
38
1.78k
msg_token
stringlengths
9
190
<nb> public class PowerUI extends SystemUI { if ( soundUri != null ) { final Ringtone sfx = RingtoneManager . getRingtone ( mContext , soundUri ) ; if ( sfx != null ) { - sfx . setStreamType ( AudioManager . STREAM_SYSTEM ) ; + sfx . setStreamType ( AudioManager . STREAM_NOTIFICATION ) ; sfx . play ( ) ; ...
Move the low battery sound to the notification stream
<nb> public class JColorBlackWhiteSwitcher extends JButton { private void refreshIcon ( ) { if ( color . equals ( Color . WHITE ) ) { SINGLE - setIcon ( ImageUtilities . loadImageIcon ( STRING0 , false ) ) ; + setIcon ( ImageUtilities . loadImageIcon ( STRING1 , false ) ) ; } else if ( color . equals ( Colo...
Fix warning about loadicon
<nb> import NAMESPACE ; public class DataStructures { private static final DecimalFormat FORMAT = new DecimalFormat ( STRING0 ) ; - private static final int NUMBER_OF_TESTS = NUMBER0 ; + private static final int NUMBER_OF_TESTS = NUMBER1 ; private static final Random RANDOM = new Random ( ) ; - private st...
Updating the testing parameters
<nb> public class WriteBehindMapStoreWithEvictionsTest extends HazelcastTestSupport { } } + @ test ( expected = IllegalStateException . class ) + public void testMapStoreLoad_whenCalledRemove ( ) throws Exception { + final FailingLoadMapStore mapStore = new FailingLoadMapStore ( ) ; + final IMap < Object ...
added test for remove
<nb> public class MSSQLTypeConverter extends AbstractTypeConverter { public NumberType getNumberType ( ) { return new NumberType ( STRING0 ) ; } - + + @ override + public DoubleType getDoubleType ( ) { + return new DoubleType ( STRING1 ) ; + } }
Use correct data type for double on sqlserver
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; - import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> public abstract class OverrideImplementMethodsHandler implements LanguageCodeIns Project project = classOrObject . getProject ( ) ; Smar...
Used public API instead of impl one
<nb> public class Table extends SqlTable < TableModel > { sql . append ( STRING0 ) . append ( getExpression ( ) ) . append ( STRING1 ) ; boolean needsComma = false ; for ( Property < ? > property : properties ) { + if ( TableModel . ROWID . equals ( property . getExpression ( ) ) ) { + continue ; + } if (...
Don t create columns named rowid in createTableSql
<nb> public abstract class AbstractTypeConvertingMap extends GroovyObjectSupport impl } COMMENT - COMMENT + COMMENT COMMENT - COMMENT + COMMENT COMMENT public Boolean getBoolean ( String name ) { Object o = get ( name ) ;
Fixing the javadoc
<nb> public class IntegerRenderer { public static void writeUnsignedTo ( IndentingWriter writer , int val ) throws IOException { writer . write ( STRING0 ) ; - writer . printUnsignedLongAsHex ( val & NUMBER0 ) ; + writer . printUnsignedLongAsHex ( val & NUMBER1 ) ; } }
Fix possible issue
<nb> public class Packages SINGLE command . append ( STRING0 + path + STRING1 ) ; + + SINGLE + if ( path . endsWith ( STRING2 ) ) + command . append ( STRING3 ) ; } if ( ! usingDefaultLibrary )
add type source when appropriate
<nb> public class ChunkedStreamSourceConduit extends AbstractStreamSourceConduit < Stre while ( anyAreSet ( newVal , FLAG_READING_LENGTH ) ) { while ( buf . hasRemaining ( ) ) { byte b = buf . get ( ) ; - if ( ( b >= STRING0 && b <= STRING1 ) || ( b >= STRING2 && b <= STRING3 ) || ( b >= STRING4 && b < STRING5 ...
Fix chunking problem
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; - import NAMESPACE ; import NAMESPACE ; public class MongoDbOperationsTest extends AbstractMongoDbTest { <nb> public class MongoDbOperationsTest extends AbstractMongoDbTest { ObjectId oid = template . requestBody ( STRING0 , dbObject , Obje...
Removed invalid test MongoDB doesn t support multi saves
<nb> public class LintManager private void lintActiveDocument ( final LintContext context ) { + SINGLE + if ( target_ . getPath ( ) == null ) + return ; + if ( context . showMarkers ) { target_ . save ( new Command ( )
don t lint unsaved documents
<nb> public class FakeIntent { } public int getIntExtra ( String name , int defaultValue ) { - return ( Integer ) extras . get ( name ) ; + Integer foundValue = ( Integer ) extras . get ( name ) ; + return foundValue == null ? defaultValue : foundValue ; } private void init ( ) {
FakeIntent getIntExtra returns default
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; + import NAMESPACE ; + + import NAMESPACE ; COMMENT COMMENT <nb> class MySQLDialect extends JDBCSQLDialect { public MySQLDialect ( JDBCDatabaseMetaData metaData ) { super ( STRING0 , metaData ) ; SINGLE + Collec...
MySQL describe keywords
<nb> public class ContextMenuLayer extends OsmandMapLayer { MapRenderRepositories maps = activity . getMyApplication ( ) . getResourceManager ( ) . getRenderer ( ) ; RenderingContext rc = maps . getVisibleRenderingContext ( ) ; RenderedObject [ ] renderedObjects = null ; - if ( rc . zoom == tileBox . getZoom ( ...
Fix crash while selecting poi on map
<nb> public class EditPostActivity extends ActionBarActivity { protected void onDestroy ( ) { super . onDestroy ( ) ; AnalyticsTracker . track ( AnalyticsTracker . Stat . EDITOR_CLOSED_POST ) ; + + if ( mSuggestionServiceConnectionManager != null ) { + mSuggestionServiceConnectionManager . unbindFromService...
Added unbind call
<nb> import static NAMESPACE ; public class CompileTimeConstantUtils { private final static Set < String > ARRAY_CALL_NAMES = KotlinPackage . hashSetOf ( - STRING0 , STRING1 , STRING2 , STRING3 , STRING4 , STRING5 , - STRING6 , STRING7 , STRING8 , STRING9 , STRING10 , STRING11 , STRING12 , STRING13 , STRING...
Drop old array constructor function names from compile time constant recognizable expressions
<nb> import NAMESPACE ; import NAMESPACE ; public interface ITransactionalSpout extends IComponent { - ITransactionalState getState ( ) ; + SINGLE + SINGLE + String getId ( ) ; + + SINGLE + Object computeNewTransactionMetadata ( ) ; + void open ( Map conf , TopologyContext context ) ; void clo...
assume zk in transactional interface
<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 ; ...
AclAuthorizationStrategyImpl uses name
<nb> public abstract class MRTask < T extends MRTask < T > > extends DTask < T > implements Fo SINGLE SINGLE - if ( _nleft != null ) try { _nleft . get ( ) ; } catch ( Throwable _ ) { } _nleft = null ; - if ( _nrite != null ) try { _nrite . get ( ) ; } catch ( Throwable _ ) { } _nrite = null ; + if ( _nleft...
Fix compiler warning
<nb> public final class CdmaCallTracker extends CallTracker { droppedDuringPoll . clear ( ) ; break ; + case EVENT_REPOLL_AFTER_DELAY : case EVENT_CALL_STATE_CHANGE : pollCallsWhenSafe ( ) ; break ; <nb> public class CdmaConnection extends Connection { } SINGLE - if ( TextUtils . isEmpty ( dc . ...
Fix a couple null pointer exceptions in CDMA voice call handling
<nb> public final class ActivityManagerService extends ActivityManagerNative true , ALLOW_NON_FULL , STRING0 , callerPackage ) ; SINGLE - SINGLE + SINGLE + SINGLE if ( userId != UserHandle . USER_ALL && ! isUserRunningLocked ( userId , false ) ) { - if ( callingUid != Process . SYSTEM_UID || ( intent ...
Allow user shutdown broadcasts to be delivered
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> public class ProjectLevelVcsManagerImpl extends ProjectLevelVcsManagerEx impleme } StartupManager . getInstance ( myProject ) . runWhenP...
for disappearing VCS roots
<nb> public class TokenSet { private static class TokenHashingStrategy implements TObjectHashingStrategy < IElementType > { public static TokenHashingStrategy INSTANCE = new TokenHashingStrategy ( ) ; - public int computeHashCode ( final IElementType object ) { - return object . getIndex ( ) ; + public int ...
Now supports nulls
<nb> public class CustomLoadBalanceTest extends ContextTestSupport { protected RouteBuilder createRouteBuilder ( ) { return new RouteBuilder ( ) { public void configure ( ) { + SINGLE from ( STRING0 ) + SINGLE . loadBalance ( new MyLoadBalancer ( ) ) . to ( STRING1 , STRING2 , STRING3 ) ; + SINGLE }...
Added wiki pages for documentation
<nb> public class DiagnosticGroups { CheckConformance . CONFORMANCE_VIOLATION , CheckConformance . CONFORMANCE_POSSIBLE_VIOLATION ) ; - SINGLE - private static final DiagnosticGroup INVALID_PROVIDE = - DiagnosticGroups . registerGroup ( STRING0 , - ProcessClosurePrimitives . INVALID_PROVIDE_ERROR ) ; + ...
Fix an unused private var error for a DiagnosticGroup that is registered but never referenced from Java code
<nb> package NAMESPACE ; import NAMESPACE ; - import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; - public class DeleteUnversionedFilesAction extends AnAction { + public class DeleteUnversionedFilesAction extends DumbAwareAction { public DeleteUnversi...
deleting unversioned files in dumb mode
<nb> public class DistributedDoubleBarrier { result = false ; } - - wait ( thisWaitMs ) ; + else + { + wait ( thisWaitMs ) ; + } } else { <nb> public class DistributedDoubleBarrier { result = false ; } - - wait ( thisWaitMs ) ; + else + { + wait ( thisWaitMs ) ; + } if ( ...
wasn t handling wait expiration correctly and was sending negative
<nb> COMMENT package NAMESPACE ; - import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; - import NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; COMMENT COMMENT - COMMENT - public class RefreshFileChooserAction extends AnAction implements DumbAware { - public v...
disable RefreshFileChooserAction outside of FileChooser dialog
<nb> public final class PageAdapter extends Adapter implements + STRING0 + pageIndexInFile ) ; } - if ( provider != null && provider . getPageIndex ( ) != pageIndexInFile ) { - mPageContentRepository . releasePageContentProvider ( provider ) ; - } - provider = mPageContentRepository . acquirePageContent...
Missing pages in print preview when scorolling
<nb> public class User implements Cacheable { if ( properties == null ) { loadPropertiesFromDb ( ) ; } - properties . remove ( name ) ; - deletePropertyFromDb ( name ) ; + if ( properties . remove ( name ) != null ) { + SINGLE + deletePropertyFromDb ( name ) ; + } } COMMENT
Do not execute a db query if the property to remove does not exist
<nb> public class CSVExportOutputStream extends OutputStream implements DatabaseExpor currentTableName = tableName ; final CsvSchema . Builder builder = CsvSchema . builder ( ) ; + SINGLE + builder . disableQuoteChar ( ) ; + for ( final ColumnInfo columnInfo : columnsForTable ) { builder . addColumn ( c...
Fix somewhat random quotes around column names when exporting account data
<nb> public class QueryTaskResource @ path ( STRING0 ) @ produces ( PrestoMediaTypes . PRESTO_PAGES ) public Response abortResults ( @ pathparam ( STRING1 ) String taskId , @ pathparam ( STRING2 ) String outputId ) - throws InterruptedException { checkNotNull ( taskId , STRING3 ) ; checkNotNull ( outputId...
remove unused exception declaration
<nb> public class TicketPage extends TicketBasePage { WicketUtils . setChangeTypeCssClass ( changeType , entry . changeType ) ; setChangeTypeTooltip ( changeType , entry . changeType ) ; item . add ( changeType ) ; - item . add ( new DiffStatPanel ( STRING0 , entry . insertions , entry . deletions , true ) ) ; ...
Fix diffstat display for tickets with pending submodule changes
<nb> + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT package NAMESPACE ; import NAMESPACE ;
Added license header
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; + import NAMESPACE ; public class PackageChange extends BroadcastReceiver { <nb> public class PackageChange extends BroadcastReceiver { NotificationManager notificationManager = ( NotificationManager ) context . getSyst...
Log package changes
<nb> public class RemoteRevisionsCache implements PlusMinus < Pair < String , AbstractVcs > } public boolean getState ( final Change change ) { + if ( change . getBeforeRevision ( ) != null && change . getAfterRevision ( ) != null && ( ! change . isMoved ( ) ) && ( ! change . isRenamed ( ) ) ) { + SINGLE + ...
ask edited file revision only once
<nb> import NAMESPACE ; COMMENT COMMENT COMMENT - COMMENT + COMMENT COMMENT COMMENT COMMENT <nb> public class AppOpsManager { } COMMENT - COMMENT + COMMENT COMMENT COMMENT public int checkOpNoThrow ( String op , int uid , String packageName ) {
Fix doc typos in AppOpsManager java
<nb> public class WindowManagerService extends IWindowManager . Stub SINGLE SINGLE mInnerFields . mObscured = true ; - } else if ( canBeSeen && ( attrFlags & FLAG_DIM_BEHIND ) != NUMBER0 ) { + } else if ( canBeSeen && ( attrFlags & FLAG_DIM_BEHIND ) != NUMBER0 + && ! ( w . mAppToken != null && w . mAppToken...
Don t start a dimming operation when hiding
<nb> import NAMESPACE ; COMMENT public class NetEntityRef extends BaseEntityRef { - private int networkId ; + private final int networkId ; private NetworkSystemImpl networkSystem ; + private boolean exists = true ; public NetEntityRef ( int networkId , NetworkSystemImpl system , LowLevelEntityManager...
Fixed hashCode for NetEntityRefs
<nb> public class SignInFragment extends AbstractFragment implements TextWatcher { mProgressTextSignIn . setText ( message ) ; mUsernameEditText . setEnabled ( false ) ; mPasswordEditText . setEnabled ( false ) ; + mTwoStepEditText . setEnabled ( false ) ; mUrlEditText . setEnabled ( false ) ; mAddSelfHoste...
Disable the Two Step field during the sign in request
<nb> public final class SqlUtils { private static final Pattern IDENTIFIER = Pattern . compile ( STRING0 ) ; COMMENT - COMMENT - COMMENT + COMMENT + COMMENT COMMENT + COMMENT + COMMENT + COMMENT COMMENT public static boolean isKeyword ( String word ) { return word == null || ALL_KEYWORDS . c...
Fix some javadocs
<nb> public class EngineWrapper_ImmutabilityCheckEngine { @ test public void test ( ) { Engine e = new StoreDirect ( null ) ; + ( ( StoreDirect ) e ) . init ( ) ; e = new EngineWrapper . ImmutabilityCheckEngine ( e ) ; List rec = new ArrayList ( ) ;
Fix failing test case
<nb> package NAMESPACE ; - COMMENT - COMMENT + COMMENT COMMENT public interface BlockingOperation {
Fixed typo in BlockingOperation
<nb> public class TribeServiceTests extends ESTestCase { assertEquals ( STRING0 , clientSettings . get ( STRING1 ) ) ; assertEquals ( STRING2 , clientSettings . get ( STRING3 ) ) ; assertEquals ( STRING4 , clientSettings . get ( STRING5 ) ) ; - assertEquals ( STRING6 , clientSettings . get ( STRING7 ) ) ; - a...
adapt TribeServiceTests after merge
<nb> public class CoyoteAdapter implements Adapter { SSL_ONLY . equals ( request . getServletContext ( ) . getEffectiveSessionTrackingModes ( ) ) && request . connector . secure ) { - SINGLE - SINGLE - SINGLE request . setRequestedSessionId ( request . getAttribute ( SSLSupport . SESSION_ID_KEY ) . toSt...
Remove some TODOs
<nb> public class ByteBuddyAgent { COMMENT COMMENT COMMENT + COMMENT COMMENT COMMENT COMMENT <nb> public class ByteBuddyAgent { COMMENT COMMENT COMMENT + COMMENT COMMENT COMMENT COMMENT
Fixed javadoc to comply to validation rules
<nb> public class TestRequest extends TestCase { assertTrue ( otherRouter . polygon . getArea ( ) > NUMBER0 ) ; } - public void testTransitIndex ( ) { - fail ( STRING0 ) ; - } - public void testBannedTrips ( ) { SINGLE TestPlanner planner = new TestPlanner ( <nb> public class GraphIndexTest extend...
remove old transit index test
<nb> public class CliTester implements TestRule { @ override public Statement apply ( final Statement base , final Description description ) { + final Statement statement = CliTester . this . outputCapture . apply ( + new RunLauncherStatement ( base ) , description ) ; return new Statement ( ) { @ overr...
Fix CliTester so that sample integration tests can be run
<nb> public abstract class ForgeMessage { COMMENT int providerId ; + public DimensionRegisterMessage ( ) { } public DimensionRegisterMessage ( int dimensionId , int providerId ) { this . dimensionId = dimensionId ;
Added default constructor for reflection
<nb> public class RoutingTableImpl extends BasicModule implements RoutingTable , Clust } public Collection < String > getServerHostnames ( ) { - return new ArrayList < String > ( serversCache . keySet ( ) ) ; + return serversCache . keySet ( ) ; } public boolean hasClientRoute ( JID jid ) {
Reverted fix for concurrency
<nb> public class RunAsLifecycleInterceptor implements LifecycleInterceptor { @ override public void init ( FilterInfo filterInfo , Filter filter , LifecycleContext context ) throws ServletException { + context . proceed ( ) ; } @ override <nb> public class RunAsLifecycleInterceptor implements Lifecycle...
Fix problem with filter initialization
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> public class RequestLogHandler extends HandlerWrapper protected void doStart ( ) throws Exception { if ( _requestLog == null ) - throw new IllegalState...
RequestLogHandler handles async completion
<nb> COMMENT - COMMENT + COMMENT COMMENT COMMENT COMMENT <nb> public class ReorderJarsMain { } } ) ; - final File tempJarFile = FileUtil . createTempFile ( STRING0 , STRING0 ) ; + final File tempJarFile = FileUtil . createTempFile ( STRING0 , STRING0 , true ) ; final JBZipFile file = new JBZip...
delete temp files in ReorderJars no matter what
<nb> public class BottomSheet extends Dialog implements DialogInterface { private List < MenuItem > actions = menuItem ; private int limit = - NUMBER0 ; + private boolean cancelOnTouchOutside = true ; public BottomSheet ( Context context ) { super ( context , R . style . BottomSheet_Dialog ) ; <nb> publ...
make setCaceledOnTouchOutside works
<nb> public class PyUnionType implements PyType { @ notnull AccessDirection direction , @ notnull PyResolveContext resolveContext ) { SmartList < RatedResolveResult > ret = new SmartList < RatedResolveResult > ( ) ; - boolean all_nulls = true ; + boolean allNulls = true ; for ( PyType member : myMembers ) {...
don t lose location when resolving members of union type
<nb> public class DiffContentFactoryImpl extends DiffContentFactory { @ notnull public static DiffContentFactoryImpl getInstanceImpl ( ) { - return ( DiffContentFactoryImpl ) ServiceManager . getService ( DiffContentFactory . class ) ; + return ( DiffContentFactoryImpl ) DiffContentFactory . getInstance ( ) ;...
cleanup remove code duplication
<nb> public final class LoadTextUtil { } CharSequence cs = getTextByBinaryPresentation ( file . contentsToByteArray ( ) , file ) ; lineSeparator = file . getUserData ( DETECTED_LINE_SEPARATOR_KEY ) ; - if ( lineSeparator . equals ( newLineSeparator ) ) { + if ( lineSeparator == null || lineSeparator . equals ...
added support for text files without new lines
<nb> public class FileResource implements Resource { public List < Resource > list ( ) { final List < Resource > resources = new ArrayList < Resource > ( ) ; for ( String child : file . list ( ) ) { - resources . add ( new FileResource ( new File ( child ) , resourceManagerRoot ) ) ; + resources . add ( new F...
Fix FileResourceManager bug when listing files
<nb> public class NotificationManagerService extends SystemService { SINGLE try { - Notification . addFieldsFromContext ( getContext ( ) . createApplicationContext ( - getContext ( ) . getPackageManager ( ) . getApplicationInfoAsUser ( - pkg , PackageManager . MATCH_UNINSTALLED_PACKAGES , userId ) , - Con...
Don t get application info for the system
<nb> public class MetricConfig { private int samples ; private long eventWindow ; private long timeWindowMs ; - private TimeUnit unit ; private Map < String , String > tags ; public MetricConfig ( ) { <nb> public class MetricConfig { this . samples = NUMBER0 ; this . eventWindow = Long . MAX_VALUE ;...
remove unused TimeUnit from MetricConfig
<nb> public class FragmentTabHost extends TabHost newTab = tab ; } } - if ( newTab == null ) { - throw new IllegalStateException ( STRING0 + tabId ) ; - } if ( mLastTab != newTab ) { if ( ft == null ) { ft = mFragmentManager . beginTransaction ( ) ;
Don t throw exception when FragmentTabHost has no tabs
<nb> public class BaseObject3D extends ATransformable3D implements Comparable < BaseObj child . destroy ( ) ; } mChildren . clear ( ) ; - mChildren = null ; } }
Don t destroy BaseObject3D mChildren reference
<nb> public abstract class BaseDrawerAdapter extends RecyclerView . Adapter < RecyclerVie cur . withSetSelected ( true ) ; } notifyItemChanged ( pos ) ; + + if ( v != null ) { + v . setSelected ( true ) ; + v . invalidate ( ) ; + } } previousSelection = pos ; }
improve selected feedback
<nb> public class EditPostActivity extends AppCompatActivity implements EditorFragmen shouldShowLocation = true ; } } - if ( shouldShowLocation ) { + if ( mEditPostSettingsFragment . isAdded ( ) && shouldShowLocation ) { SINGLE mEditPostSettingsFragment . showLocationSearch ( ) ; return ;
Verifying state of fragment before modifying views
<nb> public class ForeignKeyColumnDefinition extends ColumnDefinition { SINGLE selectBuilder . add ( STRING0 , ClassName . get ( referencedTableClassName . packageName ( ) , referencedTableClassName . simpleName ( ) + STRING1 + TableDefinition . DBFLOW_TABLE_TAG ) , - referenceDefinition . foreignColumnName , L...
fixing compiling issues
<nb> public class PJOGL extends PGL { @ override public String getProgramInfoLog ( int program ) { int [ ] val = { NUMBER0 } ; - gl2 . glGetShaderiv ( program , GL2ES2 . GL_INFO_LOG_LENGTH , val , NUMBER0 ) ; + gl2 . glGetProgramiv ( program , GL2ES2 . GL_INFO_LOG_LENGTH , val , NUMBER0 ) ; int length = val...
Call glGetProgramiv to retrieve program log length
<nb> public class StdValueInstantiator : config . isEnabled ( DeserializationFeature . ACCEPT_EMPTY_STRING_AS_NULL_OBJECT ) ; _valueTypeDesc = ( valueType == null ) ? STRING0 : valueType . toString ( ) ; } - + COMMENT COMMENT COMMENT <nb> public class UnknownSerializer protected void failForEmpty ...
Fix a minor type on exception message
<nb> public class ThemeBrowserActivity extends WPActionBarActivity implements } private String getBlogId ( ) { + if ( WordPress . getCurrentBlog ( ) == null ) + return STRING0 ; return String . valueOf ( WordPress . getCurrentBlog ( ) . getRemoteBlogId ( ) ) ; }
Fixed NPE when current blog is null
<nb> public class EnumRule implements Rule < JClassContainer , JType > { private JDefinedClass createEnum ( JsonNode node , String nodeName , JClassContainer container ) throws ClassAlreadyExistsException { - int modifiers = container . isPackage ( ) ? JMod . PUBLIC : JMod . PUBLIC | JMod . STATIC ; + int mod...
Remove redundant static modifier on enums
<nb> public class BinaryExpressionMultiTypeDispatcher extends BinaryExpressionHelper operandStack . load ( ClassHelper . int_TYPE , subscriptValueId ) ; operandStack . swap ( ) ; bew . arraySet ( false ) ; - operandStack . remove ( NUMBER0 ) ; + operandStack . remove ( NUMBER1 ) ; SINGLE SINGLE operandS...
fix array set operator popping error
<nb> import NAMESPACE ; import NAMESPACE ; COMMENT - COMMENT - COMMENT + COMMENT + COMMENT COMMENT COMMENT COMMENT
Fixed typo in javadoc
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> public abstract class FrameworkPortlet extends GenericPortletBean SINGLE RequestAttributes previousRequestAttributes = RequestContextHol...
FrameworkPortlet exposes local PortletRequestAttributes in case of pre bound ServletRequestAttributes as well
<nb> public class ByteBufferList { while ( need > NUMBER0 ) { ByteBuffer b = mBuffers . peek ( ) ; int read = Math . min ( b . remaining ( ) , need ) ; - if ( bytes != null ) + if ( bytes != null ) { b . get ( bytes , offset , read ) ; + } else { + SINGLE + b . position ( b . position ( ) + read ) ; ...
Fix get incorrectly handling null bytes
<nb> public class EnglishGrammaticalRelations { private static final String selfRegex = STRING0 ; private static final String xcompVerbRegex = - STRING1 ; + STRING2 ; SINGLE SINGLE
Add force to the list of xcomp verbs
<nb> public class MessageDrivenComponentDescription extends EJBComponentDescription { } this . messageListenerInterfaceName = messageListenerInterfaceName ; SINGLE - ViewDescription viewDescription = new EJBViewDescription ( this , messageListenerInterfaceName , MethodIntf . SERVICE_ENDPOINT ) ; + ViewDescrip...
use proper MethodIntf for MDB
<nb> public class MtpDatabase { if ( c != null ) c . close ( ) ; if ( db != null ) db . close ( ) ; } - databaseFile . delete ( ) ; + context . deleteDatabase ( devicePropertiesName ) ; } }
When deleting a db file
<nb> class StatementAnalyzer if ( schema . isPresent ( ) ) { List < String > parts = schema . get ( ) . getParts ( ) ; if ( parts . size ( ) > NUMBER0 ) { - throw new SemanticException ( INVALID_SCHEMA_NAME , showTables , STRING0 , schema ) ; + throw new SemanticException ( INVALID_SCHEMA_NAME , showTables , ...
Fix schema name in SHOW TABLES error message
<nb> extends BaseTest < A , AP , B , S , B2S , BS , L , X , DATE , BOOL , D , T , U , UU , I , IPK , T7 MergeFinalStep < A > q = create ( ) . mergeInto ( TAuthor ( ) ) . using ( select ( f , l ) ) - . on ( TAuthor_LAST_NAME ( ) . equal ( l ) ) + . on ( TAuthor_ID ( ) . eq ( NUMBER0 ) ) . whenMatchedThenUpda...
Fixed integration test for Oracle
<nb> public class Ctags { COMMENT if ( CTagsExtraOptionsFile != null ) { - log . log ( Level . WARNING , STRING0 ) ; + log . log ( Level . INFO , STRING0 ) ; command . add ( STRING1 + CTagsExtraOptionsFile ) ; }
lower ctags log message about extra options to INFO
<nb> import NAMESPACE ; import NAMESPACE ; COMMENT - COMMENT + COMMENT COMMENT public interface DatagramChannel extends Channel { @ override
Fix DatagramChannel javadoc
<nb> public class GroovyMain { COMMENT COMMENT public File huntForTheScriptFile ( String scriptFileName ) { - File scriptFile = new File ( scriptFileName ) ; + File scriptFile = new File ( scriptFileName . trim ( ) ) ; String [ ] standardExtensions = { STRING0 , STRING1 , STRING2 , STRING3 } ; int i = NUM...
java lang ClassFormatError running groovy script from shell bash
<nb> import NAMESPACE ; COMMENT COMMENT COMMENT - COMMENT - COMMENT + COMMENT + COMMENT COMMENT COMMENT COMMENT
Fix comments in preamble
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> public class IBeaconService extends Service { @ override public void onCreate ( ) { - Log . i ( TAG , STRING0 ) ; + Log . i ( TAG , STRING1 + BuildCo...
make version dynamic in startup debug line
<nb> public class Main { public static final int LICENSE_ERROR = NUMBER0 ; public static final int PLUGIN_ERROR = NUMBER1 ; + private static final String AWT_HEADLESS = STRING0 ; + private static boolean isHeadless ; private static boolean isCommandLine ; <nb> public class Main { setFlags ( args ) ;...
preserve headless property
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> public class CacheEhCacheImpl implements Cache { element . setTimeToLive ( expiration ) ; ehCache . put ( element ) ; } - + + public StatisticsGateway getStatistics (...
added statistics method to ehcache
<nb> import NAMESPACE ; @ override public Void call ( ) throws Exception { long totalSize = response . getTotalSize ( ) ; - int downloadedSize = NUMBER0 ; + long downloadedSize = NUMBER0 ; InputStream responseStream = null ; try { responseStream = response . getContent ( ) ; <nb> import NAMESPACE ; ...
Rebase master and nit changes
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; - import NAMESPACE ; import NAMESPACE ; import NAMESPACE ;
Removes unused import
<nb> package NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> public class StudyNavigator { if ( nextLessonIndex >= lessons . size ( ) ) { return null ; } - return lessons . get ( nextLessonInd...
do not use fake last lesson
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; - import NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; <nb> public class PhiTypeResolver { } LocalItem firstLocal = first . getLocalItem ( ) ; - TypeBearer mergedType = first . getType ( ) ; + Type mergedT...
Simplify static analysis of DX s PhiTypeResolver
<nb> public class PyPreFormatProcessor implements PreFormatProcessor { } myRange = range ; element . accept ( this ) ; - return element . getTextRange ( ) ; + return range ; } @ override
Fix tests returning correct text range from pre format processor
<nb> public class ThriftRestImpl extends AbstractComponent implements Rest . Iface { } @ override public org . elasticsearch . thrift . RestResponse execute ( RestRequest request ) throws TException { + if ( logger . isTraceEnabled ( ) ) { + logger . trace ( STRING0 , request ) ; + } final CountDownLatch ...
add trace logging for thrift
<nb> public class Wallet extends BaseTaggableObject implements Serializable , BlockCha return params ; } + COMMENT + public Context getContext ( ) { + return context ; + } + COMMENT COMMENT COMMENT <nb> package NAMESPACE ; - import NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; ...
Propagate context to the wallet autosave thread
<nb> public class AuthenticationHelper } String username = getUserForPort ( AddressHelper . getMissionControlPort ( ) , portToUserMappings ) ; - String password = getPasswordForUsername ( AuthenticationHelper . username , usernameToPasswordMappings ) ; + String password = getPasswordForUsername ( username , u...
Fixed auto login
<nb> public class LocalStore extends Store implements Serializable { for ( Part viewable : viewables ) { try { String text = MimeUtility . getTextFromPart ( viewable ) ; + + COMMENT + COMMENT + COMMENT + COMMENT + if ( text == null ) { + text = STRING0 ; + } + COMMENT COMMENT COMMENT <nb...
Don t show null for partially downloaded messages with empty text body
<nb> public class PatchFixes { public static void setIsGeneratedFlag ( org . eclipse . jdt . core . dom . ASTNode domNode , org . eclipse . jdt . internal . compiler . ast . ASTNode internalNode ) throws Exception { + if ( internalNode == null || domNode == null ) return ; boolean isGenerated = internalNode ....
We encountered a strange NPE here
<nb> import NAMESPACE ; import NAMESPACE ; COMMENT - COMMENT + COMMENT COMMENT public class Portuguese extends Language {
pt update javadoc
<nb> public class CompilerConfigurationImpl extends CompilerConfiguration implements DEFAULT_COMPILER = myDefaultJavaCompiler . getId ( ) ; } + public Collection < BackendCompiler > getRegisteredJavaCompilers ( ) { + createCompilers ( ) ; + return myRegisteredCompilers ; + } + public String [ ] getRes...
fixing java compilers configuration UI
<nb> public class PasswordSafeConfigurable implements SearchableConfigurable { COMMENT COMMENT public String getHelpTopic ( ) { - SINGLE - return null ; + return STRING0 ; } COMMENT
mapped help id