diff
stringlengths
38
1.78k
msg_token
stringlengths
9
190
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; - import NAMESPACE ; - import NAMESPACE ; - import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> public class MessagingController implements Runnable { COMMENT COMMENT COMMENT - COMME...
Remove unused import
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; - import NAMESPACE ; import NAMESPACE ; COMMENT <nb> public class PmdBlockChunker { return Lists . newArrayList ( ) ; } TokensLine [ ] fragmentsArr = fragments . toArray ( new TokensLine [ fragments . size ( ) ] ) ; - ArrayList < Bloc...
Fix some quality flaws
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; - import NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> import static NAMESPACE ; @ runwith ( Parameterized . class ) @ parameterized.useparametersrunnerfactory ( Haze...
Changed NearCachePreloader test categories to SlowTest
<nb> public class VirtualDirectoryImpl extends VirtualFileSystemEntry { SINGLE removeFromArray ( indexInReal ) ; } - assertConsistency ( ignoreCase , name ) ; + if ( CHECK ) { + assertConsistency ( ignoreCase , name ) ; + } } @ nullable SINGLE
remove easy garbage
<nb> import NAMESPACE ; import NAMESPACE ; COMMENT - COMMENT + COMMENT COMMENT COMMENT COMMENT
Fixed missing Javadoc
<nb> final class StaticFileRpc implements HttpRpc { throws IOException { final String uri = query . request ( ) . getUri ( ) ; if ( STRING0 . equals ( uri ) ) { - query . sendFile ( tsdb . getConfig ( ) . getString ( STRING1 ) + query . sendFile ( tsdb . getConfig ( ) . getString ( STRING1 ) + STRING0 , NUM...
Don t require a trailing slash in the static root
<nb> public class SSTableImport } SuperColumn superColumn = ( SuperColumn ) cfamily . getColumn ( superName ) ; - superColumn . markForDeleteAt ( ( int ) System . currentTimeMillis ( ) , deletedAt ) ; + superColumn . markForDeleteAt ( ( int ) ( System . currentTimeMillis ( ) / NUMBER0 ) , deletedAt ) ; } ...
do trivial arithmetic correctly
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> public class MyActivity extends Activity { } @ click - void startListActivity ( ) { + void startListActivity ( View v ) { startA...
Added a View parameter for test purposes
<nb> public class PlainClientCallbackHandler extends AbstractSaslClientCallbackHandle COMMENT COMMENT public PlainClientCallbackHandler ( ) { - _username = USERNAME ; + _username = System . getProperty ( STRING0 ) ; _password = PASSWORD ; } } <nb> import NAMESPACE ; COMMENT COMMENT public class ...
Using real user id in the ReqContext instead of username in PlainSaslTransportPlugin
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> public class HomePage extends BasePage { response . render ( CssHeaderItem . forUrl ( STRING0 ) ) ; - response . render ( CssHeaderItem - . forRefere...
prevent custom css cache
<nb> public final class PermissionUtils { COMMENT COMMENT public static boolean verifyPermissions ( int . . . grantResults ) { + if ( grantResults . length == NUMBER0 ) { + return false ; + } for ( int result : grantResults ) { if ( result != PackageManager . PERMISSION_GRANTED ) { return false ;
Fix problem with empty grantReults
<nb> public class CamelAutoConfiguration { return properties ; } + COMMENT + COMMENT + COMMENT @ bean - CamelBeanPostProcessor camelBeanPostProcessor ( CamelContext camelContext , ApplicationContext applicationContext ) { + CamelBeanPostProcessor camelBeanPostProcessor ( ApplicationContext application...
Spring Boot Removed obsolete CamelContext injection
<nb> public final class SimpleTextAttributes { effectColor = myWaveColor ; effectType = EffectType . WAVE_UNDERSCORE ; } else if ( isStrikeout ( ) ) { - effectColor = myFgColor ; + effectColor = myWaveColor ; effectType = EffectType . STRIKEOUT ; } else { effectColor = null ;
Fixed cloning problem
<nb> public final class GlideExecutor extends ThreadPoolExecutor { @ override public synchronized Thread newThread ( @ nonnull Runnable runnable ) { - final Thread result = new Thread ( runnable , name + STRING0 + threadNum ) { + final Thread result = new Thread ( runnable , STRING1 + name + STRING0 + threadN...
Prefix Glide thread names with glide and
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; - import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ;
Removing unused field method
<nb> public class Stage implements Startable stage . setMessagingPool ( messagingPool ) ; stage . setObjectCloner ( objectCloner ) ; stage . setClusterName ( clusterName ) ; + stage . setClusterPeer ( clusterPeer ) ; stage . setNodeName ( nodeName ) ; stage . setMode ( mode ) ; stage . setExecutionPoolSiz...
Fixing stage builder missing the clusterPeer
<nb> public class FileListItem { } else { tag . Selected = ! tag . Selected ; } - Util . updateActionModeTitle ( actionMode , mContext , mFileViewInteractionHub . getSelectedFileList ( ) . size ( ) ) ; + + Menu mMenu = actionMode . getMenu ( ) ; + mMenu . findItem ( R . id . action_cancel ) . setVisib...
Fixed action bar
<nb> public class DataSourceAutoConfigurationTests { public DataSource dataSource ( ) { this . pool = new BasicDataSource ( ) ; this . pool . setDriverClassName ( STRING0 ) ; - this . pool . setUrl ( STRING1 ) ; + this . pool . setUrl ( STRING2 ) ; this . pool . setUsername ( STRING3 ) ; return this . poo...
Move database files into target directory
<nb> package NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; + import NAMESPACE ; COMMENT COMMENT <nb> public final class TemplatizedType extends ProxyObjectType { } @ override - String toStringHelper ( boolean forAnnotations ) { + String toStr...
Fixed record type truncation in generated externs
<nb> import NAMESPACE ; COMMENT COMMENT COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT COMMENT @ suppresswarnings ( STRING0 ) public class HookDelegate < T > { <nb> import NAMESPACE ; COMMENT COMMENT COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT...
Adding some comments on HookDelegate and PatchDelegate
<nb> public class CommentsListFragment extends Fragment { } else if ( ! NetworkUtils . isNetworkAvailable ( getActivity ( ) ) ) { updateEmptyView ( EmptyViewMessageType . NETWORK_ERROR ) ; setRefreshing ( false ) ; + SINGLE + getAdapter ( ) . loadComments ( mCommentStatusFilter ) ; return ; }
if no network we ll load the comments we have locally in the db
<nb> + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT package NAMESPACE ; import NAMESPACE ;
added license header
<nb> public class AudioService extends IAudioService . Stub { COMMENT public void setMasterMute ( boolean state , IBinder cb ) { - AudioSystem . setMasterMute ( state ) ; - sendMasterMuteUpdate ( state , AudioManager . FLAG_SHOW_UI ) ; + if ( state != AudioSystem . getMasterMute ( ) ) { + AudioSystem . se...
Only send master volume or mute updates if the settings have changed
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> public class ChatWritePanel extends JScrollPane implements private int typingState = - NUMBER0 ; + private StyledEditorKit styledEditor = new StyledEdi...
Change msg window wrap policy
<nb> class NonUniqueFieldIndex < T > implements FieldIndex < T > { ConcurrentHashSet < T > objSet ; - do { + while ( true ) { objSet = mIndexMap . get ( fieldValue ) ; SINGLE while ( objSet == null ) { <nb> class NonUniqueFieldIndex < T > implements FieldIndex < T > { synchronized ( objSet ) { SIN...
fix small bugs concening add synchronization
<nb> COMMENT package NAMESPACE ; - import NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ;
Fix import statement of Preconditions
<nb> public class TestDirResourceSetInternal extends TestDirResourceSet { File f = new File ( STRING0 ) ; TesterWebResourceRoot root = new TesterWebResourceRoot ( ) ; WebResourceSet webResourceSet = - new DirResourceSet ( new TesterWebResourceRoot ( ) , STRING1 , - f . getAbsolutePath ( ) , STRING2 ) ; + ne...
Test should only use a single root
<nb> public class FluxMain { private static Logger LOG = LoggerFactory . getLogger ( FluxMain . class ) ; public static void main ( String [ ] args ) throws Exception { - TopologyDef topologyDef = FluxParser . parse ( STRING0 ) ; + TopologyDef topologyDef = FluxParser . parse ( args [ NUMBER0 ] ) ; SINGLE...
allow specification of config file on the command line
<nb> import NAMESPACE ; COMMENT COMMENT COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT COMMENT COMMENT COMMENT
Add SurfaceTexture docs for getTransformMatrix
<nb> public class Types case KEYWORD_MIXIN : case KEYWORD_DEF : case KEYWORD_IN : + case KEYWORD_PROPERTY : return true ; } break ;
Added property as a keyword identifier
<nb> public class MavenDomUtil { public static boolean isProfilesFile ( PsiFile file ) { if ( ! ( file instanceof XmlFile ) ) return false ; - String name = file . getName ( ) ; - if ( ! name . equals ( MavenConstants . PROFILES_XML ) ) return false ; - - XmlTag rootTag = ( ( XmlFile ) file ) . getRootTag...
Fix broken maven test
<nb> + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT package NAMESPACE ; import static NAMESPACE ;
Added missing license header
<nb> public class Exec2 extends Request2 { if ( num_rows == NUMBER0 && num_cols == NUMBER0 ) scalar = fr . vecs ( ) [ NUMBER1 ] . at ( NUMBER1 ) ; return new Response ( Response . Status . done , this , - NUMBER0 , - NUMBER0 , null ) ; } - catch ( PositionedException pe ) { e = pe ; } SINGLE + catch ( Illegal...
missed compiler error
<nb> package NAMESPACE ; - import NAMESPACE ; - import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; + import static NAMESPACE ; + public class JsonResponseHandler extends AbstractContentResponseHandler { - private final ObjectMapper mapper = new ObjectMapper ( ) ; priva...
replaced json pojo implementation in json response handler with toJson in jsons
<nb> public class MapRenderingTypes { } String poiCategory = parser . getAttributeValue ( STRING0 , STRING1 ) ; - if ( poiCategory != null && poiCategory . length ( ) > NUMBER0 ) { + if ( poiCategory != null ) { rtype . poiSpecified = true ; if ( poiCategory . length ( ) == NUMBER0 ) { rtype . poiCatego...
Fix issue with unnecessary POI created
<nb> public class TxMakerTest { } - @ test public void concurrent_tx ( ) throws Throwable { + @ test ( timeout = NUMBER0 ) + public void concurrent_tx ( ) throws Throwable { final int threads = NUMBER1 ; final int items = NUMBER2 ; final CountDownLatch l = new CountDownLatch ( threads ) ; <nb> publi...
Add timeout to some tests with possible deadlocks
<nb> public class GenericFileDialog e . printStackTrace ( ) ; } + if ( parent == null ) + parent = new Frame ( ) ; + return new SipCommFileDialogImpl ( parent , title , operation ) ; } else
Fix an IllegalArgumentException for the parent frame of a file dialog
<nb> public class ClassDefinition { for ( ClassDataItem . EncodedMethod directMethod : classDataItem . getDirectMethods ( ) ) { if ( directMethod . method . getMethodName ( ) . getStringValue ( ) . equals ( STRING0 ) ) { + if ( directMethod . codeItem == null ) { + break ; + } for ( Instruction instruct...
Fix an NPE when there is a clinit with no codeItem
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; - import NAMESPACE ; public class InformationDisclosureDatabaseErrors extends PluginPassiveScanner { private PassiveScanThread parent = null ; private static final String databaseErrorFile = STRING0 ; - private static f...
removed the getClass and a package that was not needed
<nb> public interface AclCache { MutableAcl getFromCache ( Serializable pk ) ; void putInCache ( MutableAcl acl ) ; + + void clearCache ( ) ; } <nb> import NAMESPACE ; COMMENT COMMENT - COMMENT + COMMENT COMMENT COMMENT COMMENT <nb> public class EhCacheBasedAclCache implements AclCache {...
Add method clear to interface AclCache
<nb> public class ExistingTemplatesComponent { tree , new Convertor < TreePath , String > ( ) { public String convert ( TreePath object ) { - DefaultMutableTreeNode node = ( DefaultMutableTreeNode ) object . getLastPathComponent ( ) ; - Object displayValue = node . getUserObject ( ) ; - - if ( displayValu...
include categories in Existing Templates speed search
<nb> public class ReformatCodeAction extends AnAction implements DumbAware { new ReformatCodeProcessor ( project , dir , dialog . isIncludeSubdirectories ( ) ) . run ( ) ; } } - return ; } final TextRange range ;
reformat code confirmation
<nb> public class TitlePageIndicator extends View implements PageIndicator { SINGLE mPaintText . setFakeBoldText ( currentPage && currentBold && mBoldText ) ; - SINGLE - mPaintText . setColor ( mColorText ) ; - canvas . drawText ( mTitleProvider . getTitle ( i ) , bound . left , bound . bottom + mTopPadding...
Fix poor quality selected title selected title has been drawn twice
<nb> public class MediaNotificationManager extends BroadcastReceiver { mNextIntent = PendingIntent . getBroadcast ( mService , NUMBER0 , new Intent ( ACTION_NEXT ) . setPackage ( pkg ) , PendingIntent . FLAG_CANCEL_CURRENT ) ; Intent openUI = new Intent ( mService , MusicPlayerActivity . class ) ; - openUI . se...
Open existing activity when clicking on notification
<nb> public class Tree extends WidgetGroup { this . padding = padding ; } + COMMENT + public float getIndentSpacing ( ) { + return indentSpacing ; + } + COMMENT public void setYSpacing ( float ySpacing ) { this . ySpacing = ySpacing ; <nb> public class Tree extends WidgetGroup { return icon ; ...
Added getLevel and getIndentationSpacing
<nb> public class MiniDrawerActivity extends AppCompatActivity { DrawerBuilder builder = new DrawerBuilder ( ) . withActivity ( this ) . withToolbar ( toolbar ) + . withInnerShadow ( true ) . withTranslucentStatusBar ( false ) . withAccountHeader ( headerResult ) SINGLE . addDrawerItems (
use new withInnerShadow true method with the MiniDrawer
<nb> public class ErrorReporter implements Thread . UncaughtExceptionHandler { SINGLE SINGLE SINGLE - ACRA . log . e ( LOG_TAG , mContext . getPackageName ( ) + STRING0 + th . getMessage ( ) , th ) ; - SINGLE - SINGLE + SINGLE SINGLE SINGLE final Activity lastActivity = lastActivityCreated . get (...
Remove second report of stacktrace
<nb> package NAMESPACE ; - import NAMESPACE ; - public interface Shape2D { }
Remove unused imports in Shape2D
<nb> public class DinnerPermsResolver implements PermissionsResolver { } public boolean hasPermission ( String name , String permission ) { - Player player = server . getPlayer ( name ) ; + Player player = server . getPlayerExact ( name ) ; if ( player == null ) { return false ; SINGLE } - if ( player...
Fixed gaping huge security flaw
<nb> public class FMLDeobfuscatingRemapper extends Remapper { public boolean isRemappedClass ( String className ) { - className = className . replace ( STRING0 , STRING1 ) ; - return classNameBiMap . containsKey ( className ) || mcpNameBiMap . containsKey ( className ) || ( ! classNameBiMap . isEmpty ( ) && c...
Save File First
<nb> public final class ZWaveNetworkMonitor implements ZWaveEventListener { public void execute ( ) { SINGLE if ( zController . getSendQueueLength ( ) > NUMBER0 ) { - logger . debug ( STRING0 ) ; + logger . debug ( STRING0 , zController . getSendQueueLength ( ) ) ; return ; }
Fix logging error
<nb> public class VoiceRouter { if ( loc != null && loc . hasSpeed ( ) ) { speed = loc . getSpeed ( ) ; } - if ( isDistanceLess ( speed , dist , TURN_IN_DISTANCE_END , FLOAT0 ) ) { + if ( isDistanceLess ( speed , dist , TURN_DISTANCE , FLOAT0 ) ) { return NUMBER0 ; - } else if ( dist <= PREPARE_DISTANCE )...
align green arrow
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; - class JsConsole extends ScriptableObject { + public class JsConsole extends ScriptableObject { COMMENT COMMENT
Fix a bug in Android M where the JsConsole is not being accessible
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> public final class RestClient implements Closeable { @ override public void cancelled ( ) { + listener . onDefinitiveFailure ( new ExecutionException (...
notify the listener if the request gets cancelled
<nb> public final class TypeCheck implements NodeTraversal . Callback , CompilerPass { return toStringProperty . getType ( ) . isFunctionType ( ) ; } ObjectType parent = type . getParentScope ( ) ; - if ( ! parent . isNativeObjectType ( ) ) { + if ( parent != null && ! parent . isNativeObjectType ( ) ) { re...
Fix crash when checking for stringifiable objects
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; - import NAMESPACE ; - import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> public class DispatcherHandlerExceptionMapperTests { @ test public void handlerNotFound ( ) throws Exception { - Throwable ex = ...
Fix test failure
<nb> import NAMESPACE ; COMMENT COMMENT COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT COMMENT COMMENT COMMENT <nb> import NAMESPACE ; COMMENT COMMENT COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT COMMENT COMMENT COMMENT
Added the limitation section to oio factories
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> public class BlockMaster implements Master , ContainerIdGenerator { @ override public TProcessor getProcessor ( ) { - SINGLE - ret...
Implement BlockMaster getProcessor
<nb> public class LwjglRenderer implements Renderer { } } + SINGLE + if ( ! GLContext . getCapabilities ( ) . GL_ARB_texture_multisample ) { + if ( img . getMultiSamples ( ) > NUMBER0 ) + throw new RendererException ( STRING0 ) ; + } + if ( target == GL_TEXTURE_CUBE_MAP ) { List < ByteBuffer > dat...
Add check for GL_ARB_texture_multisample before setting up the texture to see if its supported
<nb> public final class ConfigFactory { COMMENT public static Config parseResourcesAnySyntax ( Class < ? > klass , String resourceBasename , ConfigParseOptions options ) { - return ConfigImpl . parseResourceAnySyntax ( klass , resourceBasename , + return ConfigImpl . parseResourcesAnySyntax ( klass , resource...
rename ConfigImpl parseResourceForPath to parseResourcesForPath
<nb> public final class Icon implements Parcelable { getResPackage ( ) ) , e ) ; } + break ; case TYPE_DATA : return new BitmapDrawable ( context . getResources ( ) , BitmapFactory . decodeByteArray ( getDataBytes ( ) , getDataOffset ( ) , getDataLength ( ) )
Fix missing break in Icon class
<nb> public final class MessagingService implements MessagingServiceMBean public void waitForStreaming ( ) throws InterruptedException { + streamExecutor_ . shutdown ( ) ; streamExecutor_ . awaitTermination ( NUMBER0 , TimeUnit . HOURS ) ; } <nb> public class StorageService implements IEndpointStateChan...
add shutdown to MS waitForStreaming
<nb> public class DecorView extends FrameLayout implements RootViewSurfaceTaker , Wind st . menu . close ( ) ; } + releaseThreadedRenderer ( ) ; + if ( mWindowResizeCallbacksAdded ) { getViewRootImpl ( ) . removeWindowCallbacks ( this ) ; mWindowResizeCallbacksAdded = false ;
Fix BackdropFrameRenderer leak
<nb> package NAMESPACE ; + COMMENT + COMMENT + COMMENT public class MaximumSizeSubMatrix { private int min ( int a , int b , int c ) {
Adding geeksforgeeks link
<nb> public class ArrayByteBufferPool implements ByteBufferPool public ArrayByteBufferPool ( ) { - this ( NUMBER0 , NUMBER1 , NUMBER0 * NUMBER2 ) ; + this ( NUMBER3 , NUMBER2 , NUMBER0 * NUMBER2 ) ; } public ArrayByteBufferPool ( int minSize , int increment , int maxSize )
Changed defaults for ArrayByteBufferPool
<nb> class JarURLConnection extends java . net . JarURLConnection { private final JarFile jarFile ; - private final Permission permission ; + private Permission permission ; private JarEntryData jarEntryData ; <nb> class JarURLConnection extends java . net . JarURLConnection { } this . jarFile = j...
Create FilePermission lazily in JarURLConnection
<nb> public class NavBarModel { } protected boolean updateModel ( DataContext dataContext ) { - PsiElement psiElement = LangDataKeys . PSI_ELEMENT . getData ( dataContext ) ; + PsiElement psiElement = LangDataKeys . PSI_FILE . getData ( dataContext ) ; if ( psiElement == null ) { - psiElement = LangDataKe...
do not process non psi member editor s elements
<nb> package NAMESPACE ; public class PathMeasure { + private Path mPath ; COMMENT COMMENT <nb> public class PathMeasure { COMMENT COMMENT public PathMeasure ( ) { + mPath = null ; native_instance = native_create ( NUMBER0 , false ) ; } <nb> public class PathMeasure { COMMENT COMMENT...
Prevent the GC from destroying the underlying native object
<nb> public class AsyncFileImpl implements AsyncFile { } @ override - public AsyncFile write ( Buffer buffer ) { + public synchronized AsyncFile write ( Buffer buffer ) { int length = buffer . length ( ) ; doWrite ( buffer , writePos , null ) ; writePos += length ;
Fix thread safety issue for writePos variable
<nb> public abstract class AbstractJRubyMojo extends AbstractMojo { COMMENT COMMENT - COMMENT COMMENT protected File gemDirectory ;
removed required flag for gemDirectory
<nb> public class InstallerFragment extends Fragment { } else if ( mHadSegmentationFault ) { issueName = STRING0 ; issueLink = STRING1 ; + + } else if ( checkClassExists ( STRING2 ) + || checkClassExists ( STRING3 ) ) { + issueName = STRING4 ; + issueLink = STRING5 ; } if ( issueName != null ) {
Add known issue for Huawei and Nubia ROMs
<nb> public class ProjectManagerImpl extends ProjectManagerEx implements NamedJDOMExt for ( Pair < VirtualFile , StateStorage > cause : causes ) { String url = cause . first . getPresentableUrl ( ) ; if ( ! alreadyShown . contains ( url ) ) { + if ( alreadyShown . size ( ) > NUMBER0 ) { + filesBuilder . appen...
avoid too large files changed externally reload project dialog
<nb> package NAMESPACE ; + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT public interface MemberSelector { + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT...
Added Javadoc on MemberSelector
<nb> class UsbDeviceSettingsManager { defaultPackage = mAccessoryPreferenceMap . get ( new AccessoryFilter ( accessory ) ) ; } + int count = matches . size ( ) ; + SINGLE + if ( count == NUMBER0 ) return ; + if ( defaultPackage != null ) { - int count = matches . size ( ) ; for ( int i = NUMBER0 ; i...
Don t display activity picker if there are no apps available for an accessory
<nb> public final class FBReaderApp extends ZLApplication { } public void gotoBookmark ( Bookmark bookmark ) { + addInvisibleBookmark ( ) ; final String modelId = bookmark . ModelId ; if ( modelId == null ) { BookTextView . gotoPosition ( bookmark ) ; <nb> public final class FBReaderApp extends ZLApplic...
bookmark jump adds an invisible bookmark
<nb> package NAMESPACE ; - import NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> package NAMESPACE ; - import NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ;
Fix wrong imports
<nb> public class ZWaveController { if ( ! transactionCompleted . tryAcquire ( NUMBER0 , zWaveResponseTimeout , TimeUnit . MILLISECONDS ) ) { timeOutCount . incrementAndGet ( ) ; SINGLE - if ( lastSentMessage . getMessageClass ( ) == SerialMessageClass . SendData ) { + SINGLE + SINGLE + if ( lastSentMessa...
Only send SendDataAbort if the frame was not ACKed by the controller
<nb> class QuickSettings { alarmTile . setOnClickListener ( new View . OnClickListener ( ) { @ override public void onClick ( View v ) { - startSettingsActivity ( AlarmClock . ACTION_SET_ALARM ) ; + startSettingsActivity ( AlarmClock . ACTION_SHOW_ALARMS ) ; } } ) ; mModel . addAlarmTile ( alarmTile , n...
Point the QS alarm tile at AlarmClock ACTION_SHOW_ALARMS
<nb> import NAMESPACE ; import NAMESPACE ; COMMENT - COMMENT + COMMENT COMMENT COMMENT public class SipAccountID extends AccountID { - protected SipAccountID ( String userID , Map accountProperties , - String protocolName , String serviceName ) + + COMMENT + COMMENT + COMMENT + COMMENT...
Making progress on the SIP package
<nb> public final class ByteBufferedChannelManager implements TransferEnvelopeDispatc final ChannelContext cc = this . registeredChannels . get ( localReceiver ) ; if ( cc == null ) { - throw new IOException ( STRING0 + localReceiver ) ; + + if ( this . recentlyRemovedChannelIDSet . contains ( localReceiver...
Improved robustness and logging of byte buffered channel manager
<nb> public class JOGLNativesInstaller extends ModuleInstall { public void restored ( ) { if ( findCompatibleOsAndArch ( ) ) { String nativeArch = nativeLibInfo . getSubDirectoryPath ( ) ; - File joglDistFolder = InstalledFileLocator . getDefault ( ) . locate ( STRING0 + nativeArch , null , false ) ; + File j...
Add code base name in JOGLWrapper
<nb> class ProxyThread implements Runnable { SINGLE String hostName = firstHeader . getHostName ( ) ; try { - beginSSL ( hostName ) ; httpOut . write ( CONNECT_HTTP_200 ) ; httpOut . flush ( ) ; + beginSSL ( hostName ) ; } catch ( MissingRootCertificateException e ) { SINGLE SINGLE
Fixes the SSL issue on Mac Os X
<nb> COMMENT package NAMESPACE ; + import 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 NAMES...
fixed issue with undo in TX
<nb> public class AprEndpoint extends AbstractEndpoint < Long > { SINGLE SINGLE SINGLE - poller . removeFromPoller ( socket ) ; + Poller poller = this . poller ; + if ( poller != null ) { + poller . removeFromPoller ( socket ) ; + } connections . remove ( Long . valueOf ( socket ) ) ; destroySocket ...
Avoid possible NPE during shutdown
<nb> public class JOGLNativesInstaller extends ModuleInstall { if ( System . getProperty ( STRING0 , STRING1 ) . equals ( STRING1 ) ) { if ( findCompatibleOsAndArch ( ) ) { String nativeArch = nativeLibInfo . getSubDirectoryPath ( ) ; - File joglDistFolder = InstalledFileLocator . getDefault ( ) . locate ( STRI...
Fix warning in JOGLNativeInstaller
<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 ForTestCompileRuntime { STRING0 , destdir . getPath ...
tests should not ignore jdk annotation dir
<nb> public class MavenPomXmlCompletionTagListenerContributor extends CompletionContr context . commitDocument ( ) ; new ReformatCodeProcessor ( context . getProject ( ) , context . getFile ( ) , xmlTag . getTextRange ( ) , true ) . run ( ) ; + + context . setLaterRunnable ( new Runnable ( ) { + @ override ...
Call completion after inserting of dependency
<nb> public class TaskListFragment extends ListFragment implements OnScrollListener , COMMENT COMMENT protected void handleCommentsButtonClicked ( ) { - Intent intent = new Intent ( getActivity ( ) , CommentsActivity . class ) ; - intent . putExtra ( TagViewFragment . EXTRA_TAG_DATA , getActiveTagData ( ) ) ;...
Fixed a potential null pointer when showing comments
<nb> public interface BaseState { } } - public static class ShowCastLoadingProgressEvent extends ShowLoadingProgressEvent { - public ShowCastLoadingProgressEvent ( int callingId , boolean show ) { + public static class ShowCreditLoadingProgressEvent extends ShowLoadingProgressEvent { + public ShowCreditLo...
Rename credit event object
<nb> public class NearestNeighborsResource extends FileResource { else { Pair < InMemoryLookupTable , VocabCache > vocab = WordVectorSerializer . loadTxt ( path ) ; - InMemoryLookupTable table = vocab . getFirst ( ) ; - table . getSyn0 ( ) . divi ( table . getSyn0 ( ) . norm2 ( Integer . MAX_VALUE ) ) ; - t...
change nearestneighbors to use wordvectors only
<nb> public class ConstraintTest response = _connector . getResponses ( STRING0 ) ; assertThat ( response , containsString ( STRING1 ) ) ; - assertThat ( response , containsString ( STRING2 ) ) ; + assertThat ( response , containsString ( STRING3 ) ) ; String session = response . substring ( response . in...
data constraint redirection does send default port
<nb> package NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; COMMENT <nb> public class ContinuousValueEncoder extends FeatureVectorEncoder { for ( int i = NUMBER0 ; i < probes ; i ++ ) { int n = hashForProbe ( originalForm , data . size ( ) , name , i ) ; if ( isTraceEnabled ( ) ) { - trace ...
Fixed null trace in ContinuousValueEncoder
<nb> public class QTestUtil { } public static void outputTestFailureHelpMessage ( ) { - System . err . println ( STRING0 - + STRING1 ) ; + System . err . println ( STRING2 + + STRING3 ) ; System . err . flush ( ) ; }
maven test build failure shows wrong error message Mohammad Islam via Ashutosh Chauhan
<nb> package NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; + import NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> import NAMESPACE ; COMMENT public class CleanupChannelGroup extends DefaultChannelGroup { + privat...
Do not throw an exception and instead log a debug statement
<nb> public class GCInspector if ( previousCount == null ) previousCount = NUMBER0 L ; gccounts . put ( gc . getName ( ) , count ) ; - assert count > previousCount ; MemoryUsage mu = membean . getHeapMemoryUsage ( ) ; long memoryUsed = mu . getUsed ( ) ;
Remove assertion causing test failures because GarbageCollectorMXBean sucks
<nb> public class DBeaverVersionChecker extends AbstractJob { if ( versionDescriptor . getProgramVersion ( ) . compareTo ( DBeaverCore . getVersion ( ) ) > NUMBER0 ) { showUpdaterDialog ( versionDescriptor ) ; } else if ( showAlways ) { - showUpdaterDialog ( versionDescriptor ) ; + showUpdaterDialog ( null ) ...
Check updates action fix
<nb> public class InputManager implements Watchdog . Monitor { } catch ( NumberFormatException e ) { } if ( result < NUMBER0 ) { - result = NUMBER1 ; + SINGLE + SINGLE + SINGLE + SINGLE + SINGLE + SINGLE + result = NUMBER2 ; } return result ; }
increase the rate at which we dispatch events
<nb> public abstract class AbstractBlackBoxTestCase extends Assert { } finally { reader . close ( ) ; } - return result . toString ( ) ; + String stringContents = result . toString ( ) ; + if ( stringContents . endsWith ( STRING0 ) ) { + log . warning ( STRING1 + file + STRING2 + + STRING3 ) ; + } +...
Add warning about test text files that may have a spurious newline
<nb> public abstract class AsynchronousProcessor implements AsyncSupport < AtmosphereRe } AtmosphereResourceImpl resource = configureWorkflow ( null , handlerWrapper , req , res ) ; + String v = req . getHeader ( HeaderConfig . X_ATMO_BINARY ) ; + if ( v != null ) { + resource . forceBinaryWrite ( Boolean ....
Add a special client header
<nb> public final class RegisterSpecSet COMMENT public static final RegisterSpecSet EMPTY = new RegisterSpecSet ( NUMBER0 ) ; + static { + EMPTY . setImmutable ( ) ; + } + COMMENT COMMENT COMMENT <nb> public final class RegisterSpecSet COMMENT private final RegisterSpec [ ] specs ; + + ...
Enforce immutability in DX s RegisterSpecSet