diff stringlengths 38 1.78k | msg_token stringlengths 9 190 |
|---|---|
<nb> public class FileUtils {
public int write ( String filename , String data , boolean append )
{
int i = NUMBER0 ;
- String FilePath = STRING0 + filename ;
+ String FilePath = filename ;
try {
ByteArrayInputStream in = new ByteArrayInputStream ( data . getBytes ( ) ) ;
byte buff [ ] = new byte [ NUMB... | Fixing up file utilities |
<nb> public abstract class ChooseByNameBase {
final String checkBoxName = myModel . getCheckBoxName ( ) ;
myCheckBox = new JCheckBox ( checkBoxName != null ? checkBoxName +
- ( myCheckBoxShortcut != null ? STRING0 +
- KeymapUtil
- . getShortcutsText ( myCheckBoxShortcut . getShortcuts ( ) ) +
- STRING1 : ... | do not show parens for empty list of shortcuts |
<nb> public class WelcomeWindow
SINGLE
SINGLE
- this . logoArea . setFont ( FONT . deriveFont ( Font . BOLD , NUMBER0 ) ) ;
+ this . logoArea . setFont ( FONT . deriveFont ( Font . BOLD , NUMBER1 ) ) ;
this . logoArea . setForeground ( DARK_BLUE ) ;
this . logoArea . setOpaque ( false ) ;
this . logoAre... | reduce the font size |
<nb> public class MatcherImpl {
COMMENT
protected void findMatches ( MatchResultSink sink , final MatchOptions options ) throws MalformedPatternException , UnsupportedPatternException
{
- PsiDocumentManager . getInstance ( project ) . commitAllDocuments ( ) ;
-
CompiledPattern compiledPattern = prepareMatch... | commit document in EDT |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> import NAMESPACE ;
COMMENT
COMMENT
COMMENT
+ @ jsonwebservice ( mode = JSONWebServiceMode . MANUAL )
public... | hide all methods |
<nb> public class CropImageView extends ImageView {
} else {
Path path = new Path ( ) ;
- if ( mCropMode == CropMode . CIRCLE ) {
+ if ( ! mIsAnimating && mCropMode == CropMode . CIRCLE ) {
path . addRect ( mImageRect , Path . Direction . CW ) ;
PointF circleCenter = new PointF ( ( mFrameRect . left + mFr... | Fix frame animation with CropMode CIRCLE |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
- import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> public class NodeStatsCollectorTest extends CrateUnitTest {
new ReferenceIdent ( SysNodesTableInfo . IDENT , SysNodesTableInfo . Columns .... | fixed error in NodeStatsCollectorTest |
<nb> public class DefaultIndex extends SonarIndex {
private Map < Resource , Map < Resource , Dependency > > incomingDependenciesByResource = Maps . newHashMap ( ) ;
private ProjectTree projectTree ;
- public DefaultIndex ( PersistenceManager persistence , DefaultResourceCreationLock lock , ProjectTree projectT... | Fix minor quality flaws |
<nb> public class PropertyTest extends GroovyTestCase {
}
public void testUsingInPropertyOnProcessViaGroovyMethod ( ) throws Exception {
- Process process = DefaultGroovyMethods . execute ( STRING0 ) ;
+ Process process = DefaultGroovyMethods . execute ( System . getProperty ( STRING1 ) + STRING2 ) ;
Object... | tweak process test case so it no longer provides a fals fail on the linux box at teamcity jetbrains com |
<nb> public interface MessageFilter {
COMMENT
COMMENT
public boolean filter ( LogMessage msg , GraylogServer server ) ;
+
+ COMMENT
+ COMMENT
+ COMMENT
+ public String getName ( ) ;
} | introduced filter getName |
<nb> public class SearchRequestCollector {
}
}
- public boolean hasRequests ( ) {
- synchronized ( lock ) {
- return ! myWordRequests . isEmpty ( ) || ! myCustomSearchActions . isEmpty ( ) || ! myQueryRequests . isEmpty ( ) ;
- }
- }
-
public List < QuerySearchRequest > takeQueryRequests ( ) {
ret... | debug info cleanup |
<nb> public class ShadowConfiguration {
@ realobject
private Configuration realConfiguration ;
-
+
public int screenLayout ;
public int touchscreen ;
public int orientation ;
<nb> public class ShadowConfiguration {
Configuration . SCREENLAYOUT_SIZE_NORMAL ;
}
- @ implementation
- public Stri... | Fix Configuration toString |
<nb> public class IndexingService extends LifecycleAdapter
SchemaIndexProvider provider = providerMap . apply ( providerDescriptor ) ;
InternalIndexState initialState = provider . getInitialState ( indexId ) ;
- logger . info ( format ( STRING0 ,
+ logger . info ( format ( STRING1 , indexId ,
descriptor . u... | Adds index id to init start logging of IndexingService |
<nb> public class ConversationActivity extends XmppActivity
View v = listView . getChildAt ( NUMBER0 ) ;
final int top = ( v == null ) ? NUMBER0 : ( v . getTop ( ) - listView . getPaddingTop ( ) ) ;
- swipedConversation = listAdapter . getItem ( position ) ;
+ try {
+ swipedConversation = listAdapter . getI... | catch IndexOutOfBoundsException when swiping away conversations |
<nb> import NAMESPACE ;
import NAMESPACE ;
COMMENT
- COMMENT
- COMMENT
- COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
COMMENT
COMMENT
COMMENT
COMMENT
COMMENT
COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
COMMENT
- SINGLE
- SINGLE
- SINGLE
- SINGLE
public class AlluxioFs extends Delegate... | Improve java doc for extending DelegateToFileSystem |
<nb> public final class ActivityManagerService extends ActivityManagerNative
}
final void addRecentTaskLocked ( TaskRecord task ) {
- SINGLE
int N = mRecentTasks . size ( ) ;
+ SINGLE
+ if ( N > NUMBER0 && mRecentTasks . get ( NUMBER0 ) == task ) {
+ return ;
+ }
+ SINGLE
for ( int i = NUMBER0 ; i... | Gah forgot this |
<nb> public interface FileLockManager {
COMMENT
COMMENT
COMMENT
- COMMENT
+ COMMENT
+ COMMENT
COMMENT
void allowContention ( FileLock fileLock , Runnable whenContended ) ; | Added a javadoc about the dodgy contract |
<nb> public class TileMapRenderer implements Disposable {
this . tilesPerBlockY = tilesPerBlockY ;
int layer , row , col ;
-
- COMMENT
- COMMENT
- COMMENT
- COMMENT
- COMMENT
-
+
SINGLE
int maxCacheSize = NUMBER0 ;
int maxHeight = NUMBER0 ;
for ( layer = NUMBER0 ; layer < map . length ; la... | fixed TileMapRenderer much more accurately calculates maximum sprite cache size |
<nb> class LibraryOrderEntryImpl extends LibraryOrderEntryBaseImpl implements Library
@ nullable
public Library getLibrary ( ) {
- if ( myLibraryName == null || ! getRootModel ( ) . isWritable ( ) ) {
+ if ( ! getRootModel ( ) . isWritable ( ) ) {
return myLibrary ;
}
if ( ApplicationManager . getApplic... | do not use invalid links to removed libraries |
<nb> public class ProcessDeployer extends ProcessEngineBuilder {
}
private DeploymentBuilder getDeploymentBuilderProxy ( final DeploymentBuilder builder ) {
- return ( DeploymentBuilder ) Proxy . newProxyInstance ( getClass ( ) . getClassLoader ( ) , new Class < ? > [ ] { DeploymentBuilder . class } , new Deplo... | Use thread context classloader to build proxy in deployer |
<nb> public class DescriptorResolver {
private JetType getDefaultSupertype ( JetClassOrObject jetClass , BindingTrace trace ) {
SINGLE
if ( jetClass instanceof JetEnumEntry ) {
- JetClassOrObject parent = PsiTreeUtil . getParentOfType ( jetClass , JetClassOrObject . class ) ;
+ JetClassOrObject parent = JetSt... | Get parent by stub in DescriptorResolver |
<nb> public class HttpSecurityConfigPostProcessor implements BeanFactoryPostProcessor
if ( beans . size ( ) > NUMBER0 ) {
rememberMeServices = ( RememberMeServices ) beans . values ( ) . toArray ( ) [ NUMBER0 ] ;
+ } else {
+ throw new SecurityConfigurationException ( STRING0 ) ;
}
SINGLE | Added check for multiple RememberMeServices beans |
<nb> public class MostlySingularMultiMap < K , V > {
return myMap . keySet ( ) ;
}
+ public boolean isEmpty ( ) {
+ return myMap . isEmpty ( ) ;
+ }
+
public boolean processForKey ( K key , Processor < V > p ) {
return processValue ( p , myMap . get ( key ) ) ;
} | Hack recursive inclusion |
<nb>
package NAMESPACE ;
+ import NAMESPACE ;
+
COMMENT
COMMENT
COMMENT
+ @ threadsafe
public enum FileSystemAction {
NONE ( STRING0 ) ,
EXECUTE ( STRING1 ) ,
<nb>
package NAMESPACE ;
+ import NAMESPACE ;
+
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> import ... | Adding thread safety annotations for tachyon security authorization in common module |
<nb> public class Config
public SeedProviderDef seed_provider ;
public DiskAccessMode disk_access_mode = DiskAccessMode . auto ;
- COMMENT
- public String job_tracker_host ;
-
- COMMENT
- public String job_jar_file_location ;
-
COMMENT
public String initial_token ; | Remove matching ancient cruft in Config |
<nb> package NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> public class DefaultEurekaClientConfigProvider implements Provider < EurekaClientC
@ eurekanamespace
private String namespace ;
+ private DefaultEurek... | Revert DefaultEurekaClientConfigProvider singleton changes |
<nb> public class SyndDateUtils {
result += Integer . valueOf ( parts [ idx ] ) * NUMBER0 ;
idx ++ ;
}
- result += Integer . valueOf ( parts [ idx ] ) * NUMBER1 ;
- idx ++ ;
- result += ( Float . valueOf ( parts [ idx ] ) ) * NUMBER2 ;
+ if ( parts . length >= NUMBER3 ) {
+ result += Integer . valueOf (... | Fixed IndexOutOfBoundsException in parseTimeString |
<nb> public class IccCard {
mHandler . sendMessage ( mHandler . obtainMessage ( EVENT_CARD_ADDED , null ) ) ;
}
- if ( oldState != State . READY && newState == State . READY ) {
+ SINGLE
+ if ( oldState != State . READY && newState == State . READY &&
+ ( is3gpp || isSubscriptionFromIccCard ) ) {
mIccFi... | Fix NV ready state |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
- import NAMESPACE ;
COMMENT
COMMENT | BigIntegerType should use BigIntTypeDescriptor |
<nb> public abstract class BaseTest < T extends ODatabase > {
@ parameters ( value = STRING0 )
public BaseTest ( @ optional String url ) {
String config = System . getProperty ( STRING1 ) ;
- if ( STRING2 . equals ( config ) )
+ if ( STRING2 . equals ( config ) || STRING3 . equals ( config ) )
storageType =... | add support for release env in tests project |
<nb> public final class CompileTask
private String sourceMapLocationMapping ;
public CompileTask ( ) {
- this . languageIn = CompilerOptions . LanguageMode . ECMASCRIPT3 ;
+ this . languageIn = CompilerOptions . LanguageMode . ECMASCRIPT6 ;
+ this . languageOut = CompilerOptions . LanguageMode . ECMASCRIPT3... | Add default languageOut ECMASCRIPT3 to ant CompileTask |
<nb> public class NavigationMenuItemView extends ForegroundLinearLayout implements Me
@ override
public void setIcon ( Drawable icon ) {
if ( icon != null ) {
- icon = DrawableCompat . wrap ( icon . getConstantState ( ) . newDrawable ( ) ) . mutate ( ) ;
+ Drawable . ConstantState state = icon . getConstantSt... | Fix NPE in setIcon |
<nb> public class ClassReloadingStrategyTest {
new ClassReloadingStrategy ( mock ( Instrumentation . class ) , ClassReloadingStrategy . Engine . RETRANSFORMATION ) ;
}
- @ test SINGLE
+ @ test
public void testResetNotSupported ( ) throws Exception {
Instrumentation instrumentation = mock ( Instrumentation... | Removed obsolete comment |
<nb> public final class ColumnFamilyStore implements ColumnFamilyStoreMBean
return Integer . parseInt ( index ) ;
}
- String getNextFileName ( )
- {
- return String . format ( STRING0 , columnFamily_ , fileIndexGenerator_ . incrementAndGet ( ) ) ;
- }
-
COMMENT
COMMENT
COMMENT
<nb> public final ... | clean up inaccurate comments remaining double increment code |
<nb> public abstract class AsyncProvidersBasicTest extends AbstractBasicTest {
}
}
- @ test ( groups = { STRING0 , STRING1 } , expectedExceptions = IllegalArgumentException . class )
- public void headShouldNotAllowBody ( ) throws IllegalArgumentException , IOException {
- AsyncHttpClient client = getAsyncH... | Remove old invalid test fix previous commit |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> public final class LocalTachyonMaster {
tachyonConf . set ( Constants . HOST_RESOLUTION_TIMEOUT_MS , STRING0 ) ;
tachyonConf . set ( Constants . WEB_THRE... | Fix code style |
<nb> public class ExceptionTest extends ContextTestSupport {
SINGLE
SINGLE
SINGLE
- template . requestBody ( STRING0 , STRING1 ) ;
+ template . sendBody ( STRING0 , STRING1 ) ;
assertMockEndpointsSatisfied ( ) ;
} | Avoid the negative tests to behave as false positive |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
- import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> public class ClusterJmxHelper {
protected static void initDefaultCluster ( ) {
initMetaData ( SimpleTcpCluster . class ) ;
initMetaData ( FarmWarDeployer... | ClusterSingleSignOn extends LifecycleMBeanBase so it registers itself |
<nb>
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
package NAMESPACE ;
import static NAMESPACE ;
<nb> public class TestShortString... | QAing the QA |
<nb> public class IntegrationTestTest extends DoctestClusterTestCase {
}
@ test
- public void testBlobIndexGetsCreated ( ) throws Exception {
- createBlobIndex ( STRING0 ) ;
- assert ( clusterService ( ) . state ( ) . getMetaData ( ) . indices ( ) . containsKey ( STRING0 ) ) ;
- }
-
- @ test
public ... | remove obsolete test |
<nb> public class QuickListsPanel extends JPanel implements SearchableConfigurable , C
updateList ( myCurrentIndex ) ;
myKeymapPanel . processCurrentKeymapChanged ( ) ;
}
- Project project = PlatformDataKeys . PROJECT . getData ( DataManager . getInstance ( ) . getDataContext ( ) ) ;
+ Project project = Platf... | retrieve data context from component |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> public class ActivityMain extends Activity implements OnItemSelectedListener , Co
mThemeId = ( sTheme == null ? android . R . style . Them... | Prevent pop up keyboard |
<nb> public final class JsNew extends JsExpressionImpl . JsExpressionHasArguments {
return constructorExpression ;
}
+ public void setConstructorExpression ( JsExpression constructorExpression ) {
+ this . constructorExpression = constructorExpression ;
+ }
+
@ override
public void accept ( JsVisitor ... | made JsNew qualifier mutable |
<nb> class Scroller {
COMMENT
public boolean scroll ( int direction ) {
- final ArrayList < View > viewList = viewFetcher . getViews ( null , true ) ;
+ final ArrayList < View > viewList = RobotiumUtils . removeInvisibleViews ( viewFetcher . getViews ( null , true ) ) ;
final ArrayList < ListView > listView... | Modified scroll int direction to remove invisible views |
<nb> class BlurDialogEngine {
canvas . drawBitmap ( bkg , srcRect , destRect , paint ) ;
SINGLE
- overlay = FastBlurHelper . doBlur ( overlay , mBlurRadius , false ) ;
+ overlay = FastBlurHelper . doBlur ( overlay , mBlurRadius , true ) ;
if ( mDebugEnable ) {
String blurTime = ( System . currentTimeMil... | Re use the same bitmap and prevent from re allocating a second bitmap |
<nb> package NAMESPACE ;
COMMENT
COMMENT
public class EPAvailabilityListenerExtension {
- public static final String EXTENSION_POINT_NAME = STRING0 ;
+ public static final String EXTENSION_POINT_NAME = STRING1 ;
private String myExtensionPointName ;
private String myListenerClass ; | Renamed extension point |
<nb> public class ChangeTypeSignatureHandler implements RefactoringActionHandler {
protected static boolean isClassArgument ( PsiElement element ) {
if ( element instanceof PsiReferenceParameterList ) {
final PsiMember member = PsiTreeUtil . getParentOfType ( element , PsiMember . class ) ;
+ if ( member instan... | enable change type signature for anonymous classes |
<nb> public class HttpClientBench {
GetMethod get = new GetMethod ( url ) ;
try {
client . executeMethod ( get ) ;
- byte [ ] bytes = get . getResponseBody ( ) ;
+ get . getResponseBody ( ) ;
} catch ( Exception e ) {
e . printStackTrace ( ) ;
} finally { | Remove unused variable byte bytes |
<nb> public class TabbedPanelTab extends JPanel {
}
SINGLE
btnPin . setBorder ( null ) ;
-
+ SINGLE
+ btnPin . setBorderPainted ( false ) ;
+
SINGLE
btnPin . setFocusable ( false ) ;
<nb> public class TabbedPanelTab extends JPanel {
btnClose . setIcon ( CLOSE_TAB_GREY_ICON ) ;
SINGLE
btnClos... | Tweak pin icons to look ok on Macs |
<nb> public class CompositePrintable implements Printable , Disposable {
if ( myWrapper != null ) {
myWrapper . printOn ( printer ) ;
}
- else {
- synchronized ( myNestedPrintables ) {
- for ( int i = NUMBER0 ; i < myNestedPrintables . size ( ) ; i ++ ) {
- if ( i == getExceptionMark ( ) && i > NUMBER0 ) ... | append lost printables |
<nb> public class SpdyClientConnection implements ClientConnection {
handleError ( exception ) ;
}
} ) ) ;
+ sinkChannel . resumeWrites ( ) ;
}
} catch ( IOException e ) {
handleError ( e ) ;
<nb> public class LoadBalancingProxySPDYTestCase extends AbstractLoadBalancingProxyTe
. setConnectionsPerThrea... | Fix SPDY client bug |
<nb> package NAMESPACE ;
import NAMESPACE ;
- import NAMESPACE ;
-
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
- import NAMESPACE ;
COMMENT
COMMENT | Fixed checkstyle errors |
<nb> public class SearchDialog extends Dialog implements OnItemClickListener , OnItemS
mGlobalSearchMode = globalSearch || searchManager . isDefaultSearchable ( mSearchable ) ;
mActivityContext = mSearchable . getActivityContext ( getContext ( ) ) ;
- createContentView ( ) ;
-
SINGLE
- if ( ! isShowing ( ... | Don t reinflate search bar when dialog is already showing |
<nb> public class Narrative {
return STRING0 ;
String out = STRING1 ;
for ( NarrativeSection section : sections ) {
- out += section . asText ( ) + STRING2 ;
+ out += section . toString ( ) + STRING2 ;
}
return out ;
}
<nb> public class NarrativeSection {
}
}
- public String asText ( ) {
+ p... | rename asText to toString |
<nb> public class GossipDigestSynVerbHandler implements IVerbHandler < GossipDigestSyn >
}
logger . trace ( STRING0 + sb . toString ( ) ) ;
}
- COMMENT
- Gossiper . instance . notifyFailureDetector ( gDigestList ) ;
doSort ( gDigestList ) ;
<nb> public class Gossiper implements IFailureDetectionEventL... | remove no op notifyFailureDetector from GDSVH |
<nb> public class FtpProducerExpressionTest extends FtpServerTestSupport {
@ test
public void testProducerComplexByExpression ( ) throws Exception {
+ SINGLE
+ String url = STRING0 + getPort ( ) + STRING1 ;
+
String expression = STRING2 ;
- template . sendBody ( getFtpUrl ( ) + STRING3 + expression , ST... | Fixed test on windows |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> public class DroidGap extends Activity implements CordovaInterface {
root . setBackgroundColor ( that . getIntegerProperty ( STRING0 , Col... | Keep the splashscreen image ratio instead of streatching it |
<nb> public class FastAdapter < Item extends IItem > extends RecyclerView . Adapter < Recycl
}
COMMENT
- COMMENT
- COMMENT
- COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
COMMENT
COMMENT
COMMENT | improve selection behavior docu |
<nb> public final class RenderEntityBlock extends Render {
realDoLight = false ;
}
- SINGLE
- SINGLE
- SINGLE
+ if ( doTessellating )
tessellator . startDrawingQuads ( ) ;
float light = NUMBER0 ;
<nb> public final class RenderEntityBlock extends Render {
renderBlocks . renderFaceXPos ( info . ba... | Fix block renderer to not be hugely inefficient |
<nb> public class DefaultScriptCompilationHandler implements ScriptCompilationHandler
classLoader ) ;
return urlClassLoader . loadClass ( source . getClassName ( ) ) . asSubclass ( scriptBaseClass ) ;
} catch ( Exception e ) {
+ File expectedClassFile = new File ( scriptCacheDir , source . getClassName ( ) + ST... | Add some tracing Give more precise error message when expected class file does not exists |
<nb> public class CGenericSQLUserFunctions {
CUser user = null ;
- try ( PreparedStatement statement = connection . prepareStatement ( query ) ;
- ResultSet resultSet = statement . executeQuery ( ) ) {
-
+ try ( PreparedStatement statement = connection . prepareStatement ( query ) ) {
statement . setStr... | Fix error when adding user |
<nb> public class TableModelFileWriter extends ModelFileWriter < TableModelSpecWrapper >
constructor = Expressions . callConstructor ( TypeConstants . LONG_PROPERTY ,
TABLE_MODEL_NAME , Expressions . staticReference ( TypeConstants . TABLE_MODEL , STRING0 ) ,
STRING1 ) ;
- SINGLE
+ utils . getMessager ( ) . p... | Log a warning when the default ID property is generated |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
+ import NAMESPACE ;
COMMENT
COMMENT
<nb> public class OpenOrAttachDialog extends DialogWrapper {
myReplaceButton . setText ( STRING0 + project . getName ( ) + STRING1 ) ;
myReplaceButton . setMnemonic ( STRING2 ) ;... | close the dialog by double clicking radio button |
<nb> public class CasApplicationContextConfiguration {
@ autowired
@ qualifier ( STRING0 )
private ArgumentExtractor defaultArgumentExtractor ;
-
- @ notnull
- @ autowired
- @ qualifier ( STRING1 )
- private Controller passThroughController ;
-
+
@ autowired
@ qualifier ( STRING2 )
private Spr... | fixed bean qualifier |
<nb>
package NAMESPACE ;
COMMENT
- COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
COMMENT
COMMENT
COMMENT
COMMENT
public interface GroovyClassVisitor {
+ COMMENT
+ COMMENT
+ COMMENT
void visitClass ( ClassNode node ) ;
+
+ COMMENT
+ COMMENT
+ COMMENT
void visit... | updated docs on GroovyClassVisitor |
<nb> public class UsersResource extends RestResource {
if ( cr . startpage != null ) {
user . setStartpage ( cr . startpage . type , cr . startpage . id ) ;
}
- if ( cr . session_timeout_ms != NUMBER0 ) {
- user . setSessionTimeoutMs ( cr . session_timeout_ms ) ;
+ if ( isPermitted ( STRING0 ) ) {
+ if ( ... | require admin privileges to set session timeout values |
<nb> public class SubsamplingScaleImageView extends View {
COMMENT
COMMENT
public PointF sourceToViewCoord ( float sx , float sy ) {
+ if ( vTranslate == null ) {
+ return null ;
+ }
float vx = ( sx * scale ) + vTranslate . x ;
float vy = ( sy * scale ) + vTranslate . y ;
return new PointF ( vx , vy )... | Check null in sourceToViewCoord |
<nb> public class GDExpandableListActivity extends GDActivity implements
}
COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ public ExpandableListView getExpandableListView ( ) {
+ ensureLayout ( ) ;
+ return mList ;
+ }
+
+ COMMENT
COMMENT
COMMENT
COMMENT | Adding a getter for the ExpandableListView |
<nb> public class JvmInfo implements Streamable , ToXContent {
mem . readFrom ( in ) ;
gcCollectors = in . readStringArray ( ) ;
memoryPools = in . readStringArray ( ) ;
- useCompressedOops = in . readOptionalString ( ) ;
+ useCompressedOops = in . readString ( ) ;
}
@ override
<nb> public class JvmIn... | Remove optionality from streaming useCompressedOops field |
<nb> public class TypeUtils {
@ notnull
public static JetType makeUnsubstitutedType ( ClassDescriptor classDescriptor , JetScope unsubstitutedMemberScope ) {
+ if ( ErrorUtils . isError ( classDescriptor ) ) {
+ return ErrorUtils . createErrorType ( STRING0 ) ;
+ }
List < TypeProjection > arguments = getD... | make error type from error class |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
- import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> public class MessageCompose extends K9Activity implements OnClickListener , OnFoc
private static final int MSG_DISCARDED_DRAFT = NUMBER0 ;... | Removed unused import constants |
<nb> public class ODatabaseImport extends ODatabaseImpExpAbstract {
int n = NUMBER0 ;
while ( jsonReader . lastChar ( ) != STRING0 ) {
- jsonReader . readNext ( OJSONReader . BEGIN_OBJECT ) ;
+ jsonReader . readNext ( OJSONReader . NEXT_OBJ_IN_ARRAY ) ;
+ if ( jsonReader . lastChar ( ) == STRING0 ) {
+ br... | Fix Database Import with empty set of indexes |
<nb> public class NetworkManagementServiceTest extends AndroidTestCase {
COMMENT
COMMENT
COMMENT
+
sendMessage ( STRING0 ) ;
- expectSoon ( observer ) . interfaceClassDataActivityChanged ( STRING1 , true ) ;
+ expectSoon ( observer ) . interfaceClassDataActivityChanged ( STRING1 , true , NUMBER0 ) ;
+
... | Update the tests to deal with the new timestamps in idletimer module |
<nb> import static NAMESPACE ;
public class DeepLearningProstateTest extends TestUtil {
@ beforeclass ( ) public static void setup ( ) { stall_till_cloudsize ( NUMBER0 ) ; }
+ @ ignore
@ test public void run ( ) throws Exception { runFraction ( FLOAT0 ) ; }
public void runFraction ( float fraction ) { | Disable DL JUnit Prostate test for now until memory leak is fixed |
<nb> public class TelephonyManager {
COMMENT
COMMENT
COMMENT
- COMMENT
- COMMENT
- COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
COMMENT
public String sendEnvelopeWithStatus ( String content ) {
try { | Update the comment in sendEnvelope |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
- import NAMESPACE ;
- import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> public class Types {
|| type == instance . ast . resolveWellKnownType ( STRING0 ) ;
}
- public static ITypeBinding resolveIOSTyp... | Removes more dead code |
<nb> public class ChartServlet extends HttpServlet implements ManagedService {
private static final Integer CHART_HEIGHT = NUMBER0 ;
private static final Integer CHART_WIDTH = NUMBER1 ;
private static final String dateFormat = STRING0 ;
- < < < < < < < HEAD
private static final DateFormat dateFormatter = ne... | git merge conflict removed |
<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 NAMESPAC... | add lost hook |
<nb>
package NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> public abstract class CommonJavaLibraryProcessor {
SINGLE
SINGLE
args . add ( STRING0 ) ;
- args . add ( STRING1 ) ;
+ args . add ( File . pathSeparator ) ;
if ( build . getExtdir ( ) != null ) {
arg... | Use correct file path separator |
<nb> public class DbSqlSession implements Session {
String exceptionSqlStatement = null ;
try {
Connection connection = sqlSession . getConnection ( ) ;
-
- SINGLE
- SINGLE
- connection . setAutoCommit ( true ) ;
-
Exception exception = null ;
byte [ ] bytes = IoUtil . readInputStream ( inputStream ... | Removing setAutoCommit true when executing DDL statements |
<nb> public class BraceHighlightingHandler {
if ( ! myCodeInsightSettings . HIGHLIGHT_BRACES ) return ;
if ( myEditor . getSelectionModel ( ) . hasSelection ( ) ) return ;
+
+ if ( myEditor . getSoftWrapModel ( ) . isInsideOrBeforeSoftWrap ( myEditor . getCaretModel ( ) . getVisualPosition ( ) ) ) return ;
... | Don t highlight soft wrapped matching braces parenthesis if caret is located at virtual space |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> public class PrivacyManager {
return true ;
}
}
+ } catch ( NameNotFoundException ex ) {
+ Util . log ( null , Log . WARN , ex . t... | Catch NameNotFoundException support info |
<nb> public class DuplicatesFinder {
PsiClass class2 = method2 . getContainingClass ( ) ;
if ( qualifier2 instanceof PsiReferenceExpression ) {
final PsiType type = ( ( PsiReferenceExpression ) qualifier2 ) . getType ( ) ;
- if ( type instanceof PsiClassType ) class2 = PsiUtil . resolveClassInType ( type ) ;
... | do not check type parameters methods |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> public class GwtTestWrapper extends GdxTest {
public void setCursorPosition ( int x , int y ) {
setCursorPosition ( x , y ) ;
}
+
... | Implement setCursorImage in GwtTestWrapper |
<nb> public class CustomRootLayout extends LinearLayout implements ViewTreeObserver . O
private boolean mIsKeyboardShowing = false ;
protected void onKeyboardShowing ( final boolean isShowing ) {
+ if ( this . mIsKeyboardShowing == isShowing ) {
+ return ;
+ }
+
this . mIsKeyboardShowing = isShowing ;
... | retune some unchanged statuses about keyboard |
<nb> public class MountSetting extends ResponseSetting {
return MoreObjects . toStringHelper ( this ) . omitNullValues ( )
. add ( STRING0 , dir )
. add ( STRING1 , uri )
- . add ( STRING2 , includes . isEmpty ( ) ? null : includes )
- . add ( STRING3 , excludes . isEmpty ( ) ? null : excludes )
+ . add ( S... | removed inline condition in mount setting |
<nb> public class Robolectric {
return RobolectricInternals . directlyOn ( shadowedObject , clazz ) ;
}
- public static < T > Invoker directlyOn ( T shadowedObject , Class < T > clazz , String methodName , Class < T > . . . paramTypes ) {
+ public static < T > Invoker directlyOn ( T shadowedObject , Class < T... | Fix Robolectric directlyOn |
<nb> public class DialogHelper {
@ override
public void onClick ( View v ) {
- SmsHelper . deleteFailedMessages ( context ) ;
+ new Thread ( new Runnable ( ) {
+ public void run ( ) {
+ SmsHelper . deleteFailedMessages ( context ) ;
+ }
+ } ) . start ( ) ;
}
} ) . setNegativeButton ( R . string . ... | Now deletes failed messages on separate thread |
<nb>
package NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> public class SettingsDialog {
} else
c... | Blacklisting needs to be enabled explicitly |
<nb> class GitDeleteBranchOperation extends GitBranchOperation {
notification . addAction ( new NotificationAction ( VIEW_COMMITS ) {
@ override
public void actionPerformed ( @ notnull AnActionEvent e , @ notnull Notification notification ) {
- viewUnmergedCommitsInBackground ( ) ;
+ viewUnmergedCommitsInBack... | expire notification after restoring branch from the dialog |
<nb> import NAMESPACE ;
import NAMESPACE ;
- public final class ModelCreator < TYPE extends AbstractModel >
+ public final class ModelCreator < TYPE extends AbstractModel & Parcelable >
implements Parcelable . Creator < TYPE > {
private final Class < TYPE > cls ; | ModelCreator should only accept a Parcelable AbstractModel |
<nb>
package NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> public class CodegenTestsOnAndroidRunner {
PermissionManager . setPermissions ( pathManager ) ;
- antRunner . packLibraries ( ) ;
+ String platformPrefixProperty = System . setProperty (... | Fix Android tests |
<nb> public class RNNCoreAnnotations {
}
}
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
public static int getPredictedClass ( Tree tree ) {
Label label = tree . label ( ) ;
if ( ! ( label instanceof CoreLabel ) ) {
throw new IllegalArgumentException ( STRING0 ) ;
}
- return ( ( CoreLabe... | Make getPredictedClass method robust to missing Annotation |
<nb> public class TextureAtlas {
rootMapName = mapName ;
}
if ( sourceTextureName == null && ! rootMapName . equals ( mapName ) ) {
- throw new IllegalStateException ( STRING0 ) ;
+ throw new IllegalStateException ( STRING1 + name + STRING2 ) ;
}
TextureAtlasTile location = locationMap . get ( name ) ;
... | add size check for normal etc maps have to fit to main texture size |
<nb> public class ServicePreAction extends Action {
Layout layout = LayoutLocalServiceUtil . addLayout (
userGroup . getGroupId ( ) , user . getUserId ( ) , true ,
Layout . DEFAULT_PARENT_LAYOUT_ID , name , Layout . TYPE_PORTLET , false ,
- null ) ;
+ StringPool . BLANK ) ;
LayoutTypePortlet layoutTypePor... | Make sure LayoutLocalServiceUtil addLayout has a valid friendly URL |
<nb> public class Hybi07Handshake extends Handshake {
public String solve ( final String nonceBase64 ) throws NoSuchAlgorithmException {
- final String concat = nonceBase64 . trim ( ) . concat ( getMagicNumber ( ) ) ;
+ final String concat = nonceBase64 . trim ( ) + getMagicNumber ( ) ;
final MessageDigest ... | Replace concat with |
<nb> public class AHBottomNavigation extends FrameLayout {
this . itemInactiveColor = inactiveColor ;
createItems ( ) ;
}
+
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ public void setColoredColors ( @ colorint int colorActive , @ colorint int colorInactive ) {
+ this . coloredT... | Added a method to change the item color when colored mode is enabled |
<nb> public class WebView extends AbsoluteLayout
private static final int MOTIONLESS_FALSE = NUMBER0 ;
private static final int MOTIONLESS_PENDING = NUMBER1 ;
private static final int MOTIONLESS_TRUE = NUMBER2 ;
+ private static final int MOTIONLESS_IGNORE = NUMBER3 ;
private int mHeldMotionless ;
SINGLE ... | Set mHeldMotionless to a new MOTIONLESS_IGNORE state |
<nb> import NAMESPACE ;
COMMENT
COMMENT
public final class CharacterComponent implements Component {
+ COMMENT
+ COMMENT
+ COMMENT
+ public float nameTagOffset = FLOAT0 ;
public float eyeOffset = FLOAT1 ;
COMMENT
COMMENT | Added a nameTagOffset field to the CharacterComponent |
<nb> public class PeerGroup extends AbstractIdleService {
private synchronized void recalculateFastCatchupTime ( ) {
SINGLE
- if ( chain . shouldVerifyTransactions ( ) ) return ;
+ if ( chain != null && chain . shouldVerifyTransactions ( ) ) return ;
long earliestKeyTime = Long . MAX_VALUE ;
for ( Wallet ... | Fix NullPointerException if using chain null in PeerGroup |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.