diff stringlengths 262 553k | is_single_chunk bool 2
classes | is_single_function bool 1
class | buggy_function stringlengths 20 391k | fixed_function stringlengths 0 392k |
|---|---|---|---|---|
diff --git a/bundles/org.eclipse.equinox.p2.ui/src/org/eclipse/equinox/p2/ui/viewers/StructuredViewerProvisioningListener.java b/bundles/org.eclipse.equinox.p2.ui/src/org/eclipse/equinox/p2/ui/viewers/StructuredViewerProvisioningListener.java
index 0dfad8a60..6245d5e77 100644
--- a/bundles/org.eclipse.equinox.p2.ui/src... | false | true | public void notify(EventObject o) {
if (o instanceof ProfileEvent && (((eventTypes & PROV_EVENT_IU) == PROV_EVENT_IU) || ((eventTypes & PROV_EVENT_PROFILE) == PROV_EVENT_PROFILE))) {
ProfileEvent event = (ProfileEvent) o;
if (event.getReason() == ProfileEvent.CHANGED) {
final String profileId = event.getPr... | public void notify(EventObject o) {
if (o instanceof ProfileEvent && (((eventTypes & PROV_EVENT_IU) == PROV_EVENT_IU) || ((eventTypes & PROV_EVENT_PROFILE) == PROV_EVENT_PROFILE))) {
ProfileEvent event = (ProfileEvent) o;
if (event.getReason() == ProfileEvent.CHANGED) {
final String profileId = event.getPr... |
diff --git a/bundles/org.eclipse.team.cvs.core/src/org/eclipse/team/internal/ccvs/core/CVSSyncInfo.java b/bundles/org.eclipse.team.cvs.core/src/org/eclipse/team/internal/ccvs/core/CVSSyncInfo.java
index cfe297641..95bdef009 100644
--- a/bundles/org.eclipse.team.cvs.core/src/org/eclipse/team/internal/ccvs/core/CVSSyncIn... | true | true | public IStatus makeOutgoing(IProgressMonitor monitor) throws TeamException {
// For folders, there is no outgoing, only in-sync
if (getLocal().getType() == IResource.FOLDER) {
return makeInSync();
}
int syncKind = getKind();
boolean incoming = (syncKind & DIRECTION_MASK) == INCOMING;
boolean outgoing... | public IStatus makeOutgoing(IProgressMonitor monitor) throws TeamException {
// For folders, there is no outgoing, only in-sync
if (getLocal().getType() == IResource.FOLDER) {
return makeInSync();
}
int syncKind = getKind();
boolean incoming = (syncKind & DIRECTION_MASK) == INCOMING;
boolean outgoing... |
diff --git a/src/com/hughes/android/dictionary/DictionaryActivity.java b/src/com/hughes/android/dictionary/DictionaryActivity.java
index 3b01133..5d937f8 100644
--- a/src/com/hughes/android/dictionary/DictionaryActivity.java
+++ b/src/com/hughes/android/dictionary/DictionaryActivity.java
@@ -1,1190 +1,1195 @@
// Copyr... | true | true | public void onCreate(Bundle savedInstanceState) {
final SharedPreferences prefs = PreferenceManager.getDefaultSharedPreferences(this);
prefs.edit().remove(C.INDEX_INDEX).commit(); // Don't auto-launch if this fails.
setTheme(((DictionaryApplication)getApplication()).getSelectedTheme().themeId);
Log... | public void onCreate(Bundle savedInstanceState) {
final SharedPreferences prefs = PreferenceManager.getDefaultSharedPreferences(this);
prefs.edit().remove(C.INDEX_INDEX).commit(); // Don't auto-launch if this fails.
setTheme(((DictionaryApplication)getApplication()).getSelectedTheme().themeId);
Log... |
diff --git a/nuxeo-social-workspace/nuxeo-social-workspace-core/src/main/java/org/nuxeo/ecm/social/workspace/listeners/SocialWorkspaceMembersManagementListener.java b/nuxeo-social-workspace/nuxeo-social-workspace-core/src/main/java/org/nuxeo/ecm/social/workspace/listeners/SocialWorkspaceMembersManagementListener.java
i... | true | true | public void notifyMembers(DocumentEventContext docCtx,
List<Principal> addedMembers, List<Principal> removedMembers) {
SocialWorkspace sw = docCtx.getSourceDocument().getAdapter(
SocialWorkspace.class);
if (sw == null) {
log.info("Event is handling a non soc... | public void notifyMembers(DocumentEventContext docCtx,
List<Principal> addedMembers, List<Principal> removedMembers) {
SocialWorkspace sw = docCtx.getSourceDocument().getAdapter(
SocialWorkspace.class);
if (sw == null) {
log.info("Event is handling a non soc... |
diff --git a/src/net/patuck/stegmpp/xmpp/Presence.java b/src/net/patuck/stegmpp/xmpp/Presence.java
index d2b88fc..a5019d0 100644
--- a/src/net/patuck/stegmpp/xmpp/Presence.java
+++ b/src/net/patuck/stegmpp/xmpp/Presence.java
@@ -1,59 +1,59 @@
/*
* To change this template, choose Tools | Templates
* and open the te... | true | true | public static void receivePresence(org.jdom2.Document tag)
{
if(tag.getRootElement().getAttribute("from") != null)
{
String from = tag.getRootElement().getAttribute("from").getValue();
if(from.substring(0, from.indexOf('/')).trim().equals(Session.to.trim()))
{
StegMPP.getUI().print("[System] ",Sty... | public static void receivePresence(org.jdom2.Document tag)
{
if(tag.getRootElement().getAttribute("from") != null)
{
String from = tag.getRootElement().getAttribute("from").getValue();
if(from.substring(0, from.indexOf('/')).trim().equals(Session.to.trim()))
{
StegMPP.getUI().print("[System] ",Sty... |
diff --git a/src/main/battlecode/engine/RobotRunnable.java b/src/main/battlecode/engine/RobotRunnable.java
index 50127947..4e34efd3 100644
--- a/src/main/battlecode/engine/RobotRunnable.java
+++ b/src/main/battlecode/engine/RobotRunnable.java
@@ -1,81 +1,81 @@
package battlecode.engine;
import java.lang.Runnable;
... | true | true | public void run() {
Constructor ctor;
Object o;
Runnable r;
try {
try {
ctor = myPlayerClass.getConstructor(Class.forName("battlecode.common.RobotController"));
} catch (Throwable t) {
ErrorReporter.report(t, "Check that the ... | public void run() {
Constructor ctor;
Object o;
Runnable r;
try {
try {
ctor = myPlayerClass.getConstructor(Class.forName("battlecode.common.RobotController"));
} catch (Throwable t) {
ErrorReporter.report(t, "Check that the ... |
diff --git a/src/main/java/RedPointMaven/Roster.java b/src/main/java/RedPointMaven/Roster.java
index c9105c6..9cae57b 100644
--- a/src/main/java/RedPointMaven/Roster.java
+++ b/src/main/java/RedPointMaven/Roster.java
@@ -1,109 +1,109 @@
package RedPointMaven;
import java.util.ArrayList;
import java.util.Set;
impo... | true | true | public void printGivingRoster(int year) {
/*
uses key:value pair functionality of keySet.
returns a msg if no match (playerCode = "none")
where last giver/givee in Hats fail a test.
*/
String playerName;
String giveeCode;
String giveeName;
play... | public void printGivingRoster(int year) {
/*
uses key:value pair functionality of keySet.
returns a msg if no match (playerCode = "none")
where last giver/givee in Hats fail a test.
*/
String playerName;
String giveeCode;
String giveeName;
play... |
diff --git a/src/main/java/com/redhat/ceylon/compiler/js/JsCompiler.java b/src/main/java/com/redhat/ceylon/compiler/js/JsCompiler.java
index 8772eb30..b179a0af 100644
--- a/src/main/java/com/redhat/ceylon/compiler/js/JsCompiler.java
+++ b/src/main/java/com/redhat/ceylon/compiler/js/JsCompiler.java
@@ -1,408 +1,408 @@
... | true | true | public boolean generate() throws IOException {
errors.clear();
errCount = 0;
output.clear();
try {
if (opts.isVerbose()) {
System.out.println("Generating metamodel...");
}
//First generate the metamodel
for (PhasedUnit p... | public boolean generate() throws IOException {
errors.clear();
errCount = 0;
output.clear();
try {
if (opts.isVerbose()) {
System.out.println("Generating metamodel...");
}
//First generate the metamodel
for (PhasedUnit p... |
diff --git a/src/Accounts/MailManager.java b/src/Accounts/MailManager.java
index e496a9d..06d480c 100755
--- a/src/Accounts/MailManager.java
+++ b/src/Accounts/MailManager.java
@@ -1,140 +1,140 @@
package Accounts;
import java.sql.Connection;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.s... | true | true | public boolean sendMessage(Message mail) {
Statement stmt;
StringBuilder sb = new StringBuilder();
sb.append("INSERT INTO message VALUES (default, \"");
sb.append(mail.getSender());
sb.append("\", \"");
sb.append(mail.getRecipient());
sb.append("\", \"");
sb.append(mail.getSubject());
sb.append("\", ... | public boolean sendMessage(Message mail) {
Statement stmt;
StringBuilder sb = new StringBuilder();
sb.append("INSERT INTO message VALUES (default, \"");
sb.append(mail.getSender());
sb.append("\", \"");
sb.append(mail.getRecipient());
sb.append("\", \"");
sb.append(mail.getSubject());
sb.append("\", ... |
diff --git a/src/com/livegameengine/web/GameServlet.java b/src/com/livegameengine/web/GameServlet.java
index c048fd6..7e2cebd 100644
--- a/src/com/livegameengine/web/GameServlet.java
+++ b/src/com/livegameengine/web/GameServlet.java
@@ -1,377 +1,378 @@
package com.livegameengine.web;
import java.io.IOException;
im... | true | true | public void handleRequest(HttpServletRequest req, HttpServletResponse resp) throws IOException {
UserService userService = UserServiceFactory.getUserService();
User u = userService.getCurrentUser();
GameUser gu = GameUser.findOrCreateGameUserByUser(u);
Pattern p = Pattern.compile("/-/([^/]+)/(meta|data|ra... | public void handleRequest(HttpServletRequest req, HttpServletResponse resp) throws IOException {
UserService userService = UserServiceFactory.getUserService();
User u = userService.getCurrentUser();
GameUser gu = GameUser.findOrCreateGameUserByUser(u);
Pattern p = Pattern.compile("/-/([^/]+)/(meta|data|ra... |
diff --git a/src/net/mcforge/chat/Messages.java b/src/net/mcforge/chat/Messages.java
index 011fda6..7dda7f2 100644
--- a/src/net/mcforge/chat/Messages.java
+++ b/src/net/mcforge/chat/Messages.java
@@ -1,93 +1,106 @@
/*******************************************************************************
* Copyright (c) 2012... | false | true | public String[] split(String message) {
char[] array = message.toCharArray();
String toadd = "";
ArrayList<String> temp = new ArrayList<String>();
for (int i = 0; i < array.length; i++) {
toadd += "" + array[i];
if (i % 64 == 0 && i != 0) {
temp.add(toadd);
toadd = "";
}
}
if (!toadd.equal... | public String[] split(String message) {
if (message.equals(""))
return new String[] { "" };
char[] array = message.toCharArray();
String toadd = "";
ArrayList<String> temp = new ArrayList<String>();
for (int i = 0; i < array.length; i++) {
toadd += "" + array[i];
if (i % 64 == 0 && i != 0) {
tem... |
diff --git a/user/test/com/google/gwt/user/client/WindowTest.java b/user/test/com/google/gwt/user/client/WindowTest.java
index d5f44078f..3f1ceef1b 100644
--- a/user/test/com/google/gwt/user/client/WindowTest.java
+++ b/user/test/com/google/gwt/user/client/WindowTest.java
@@ -1,80 +1,80 @@
/*
* Copyright 2008 Google... | true | true | public void disabledTestGetClientSize() {
// Get the dimensions without any scroll bars
Window.enableScrolling(false);
final int oldClientHeight = Window.getClientHeight();
final int oldClientWidth = Window.getClientWidth();
assertTrue(oldClientHeight > 0);
assertTrue(oldClientWidth > 0);
... | public void testGetClientSize() {
// Get the dimensions without any scroll bars
Window.enableScrolling(false);
final int oldClientHeight = Window.getClientHeight();
final int oldClientWidth = Window.getClientWidth();
assertTrue(oldClientHeight > 0);
assertTrue(oldClientWidth > 0);
// Comp... |
diff --git a/AdminSchedulingEJB/ejbModule/com/movix/AdminScheduling/model/dao/EventDAOImpl.java b/AdminSchedulingEJB/ejbModule/com/movix/AdminScheduling/model/dao/EventDAOImpl.java
index 279d6cd..dd974e1 100644
--- a/AdminSchedulingEJB/ejbModule/com/movix/AdminScheduling/model/dao/EventDAOImpl.java
+++ b/AdminSchedulin... | false | true | public void upsert(EventDTO event) {
SchedulingClient schedulingClient = SchedulingClient.getInstance();
List<SchedulingEntryPro> schedulingEntryPros = event.getEntries();
List<SchedulingEntryPro> newSchedulingEntryPros = new ArrayList<SchedulingEntryPro>();
for(int i = 0; i < daysPatterns.length; i++){
f... | public void upsert(EventDTO event) {
SchedulingClient schedulingClient = SchedulingClient.getInstance();
List<SchedulingEntryPro> schedulingEntryPros = event.getEntries();
List<SchedulingEntryPro> newSchedulingEntryPros = new ArrayList<SchedulingEntryPro>();
for(int i = 0; i < daysPatterns.length; i++){
f... |
diff --git a/src/org/apache/xerces/impl/dtd/XMLDTDProcessor.java b/src/org/apache/xerces/impl/dtd/XMLDTDProcessor.java
index 1ec5e179..3838bd8c 100644
--- a/src/org/apache/xerces/impl/dtd/XMLDTDProcessor.java
+++ b/src/org/apache/xerces/impl/dtd/XMLDTDProcessor.java
@@ -1,1657 +1,1657 @@
/*
* The Apache Software Lic... | true | true | public void attributeDecl(String elementName, String attributeName,
String type, String[] enumeration,
String defaultType, XMLString defaultValue,
XMLString nonNormalizedDefaultValue, Augmentations augs) throws XNIException ... | public void attributeDecl(String elementName, String attributeName,
String type, String[] enumeration,
String defaultType, XMLString defaultValue,
XMLString nonNormalizedDefaultValue, Augmentations augs) throws XNIException ... |
diff --git a/src/DVN-EJB/src/java/edu/harvard/hmdc/vdcnet/study/FieldInputLevel.java b/src/DVN-EJB/src/java/edu/harvard/hmdc/vdcnet/study/FieldInputLevel.java
index e3fd72cc1..3140ca737 100644
--- a/src/DVN-EJB/src/java/edu/harvard/hmdc/vdcnet/study/FieldInputLevel.java
+++ b/src/DVN-EJB/src/java/edu/harvard/hmdc/vdcne... | true | true | public boolean equals(Object object) {
// TODO: Warning - this method won't work in the case the id fields are not set
if (!(object instanceof StudyLock)) {
return false;
}
FieldInputLevel other = (FieldInputLevel)object;
if (this.id != other.id && (this.id == nul... | public boolean equals(Object object) {
// TODO: Warning - this method won't work in the case the id fields are not set
if (!(object instanceof FieldInputLevel)) {
return false;
}
FieldInputLevel other = (FieldInputLevel)object;
if (this.id != other.id && (this.id ... |
diff --git a/htroot/yacysearchitem.java b/htroot/yacysearchitem.java
index f351cdae2..aec533f4a 100644
--- a/htroot/yacysearchitem.java
+++ b/htroot/yacysearchitem.java
@@ -1,225 +1,225 @@
// yacysearchitem.java
// (C) 2007 by Michael Peter Christen; mc@yacy.net, Frankfurt a. M., Germany
// first published 28.08.200... | true | true | public static serverObjects respond(final httpRequestHeader header, final serverObjects post, final serverSwitch<?> env) {
final plasmaSwitchboard sb = (plasmaSwitchboard) env;
final serverObjects prop = new serverObjects();
final String eventID = post.get("eventID", "");
fi... | public static serverObjects respond(final httpRequestHeader header, final serverObjects post, final serverSwitch<?> env) {
final plasmaSwitchboard sb = (plasmaSwitchboard) env;
final serverObjects prop = new serverObjects();
final String eventID = post.get("eventID", "");
fi... |
diff --git a/integration-beans/src/main/java/org/apache/mina/integration/beans/CharacterEditor.java b/integration-beans/src/main/java/org/apache/mina/integration/beans/CharacterEditor.java
index 1c68108e..45ad5610 100644
--- a/integration-beans/src/main/java/org/apache/mina/integration/beans/CharacterEditor.java
+++ b/... | true | true | protected Object toValue(String text) throws IllegalArgumentException {
if (text.length() > 0) {
return Character.valueOf(Character.MIN_VALUE);
}
if (UNICODE.matcher(text).matches()) {
return Character.valueOf((char) Integer.parseInt(text.substring(2)));
... | protected Object toValue(String text) throws IllegalArgumentException {
if (text.length() == 0) {
return Character.valueOf(Character.MIN_VALUE);
}
if (UNICODE.matcher(text).matches()) {
return Character.valueOf((char) Integer.parseInt(text.substring(2)));
... |
diff --git a/src/main/java/com/endercreators/perms/EnderPerms.java b/src/main/java/com/endercreators/perms/EnderPerms.java
index 685847a..83a8d30 100644
--- a/src/main/java/com/endercreators/perms/EnderPerms.java
+++ b/src/main/java/com/endercreators/perms/EnderPerms.java
@@ -1,121 +1,121 @@
package com.endercreators.... | true | true | public void onEnable() {
this.saveDefaultConfig();
if ((!setupPermissions()) || (!setupChat())) {
getLogger().info("Stopping plugin. Vault not found.");
return;
}
mysqlmanager = new MySQLManager(this);
if (getConfig().getLong("refresh") < 60)
... | public void onEnable() {
this.saveDefaultConfig();
if (!setupPermissions()) {
getLogger().info("Stopping plugin. Vault not found.");
return;
}
mysqlmanager = new MySQLManager(this);
if (getConfig().getLong("refresh") < 60)
getLogger().i... |
diff --git a/src/jp/co/qsdn/android/iwashi3d/AtlantisService.java b/src/jp/co/qsdn/android/iwashi3d/AtlantisService.java
index b1c708c..b6c66fd 100644
--- a/src/jp/co/qsdn/android/iwashi3d/AtlantisService.java
+++ b/src/jp/co/qsdn/android/iwashi3d/AtlantisService.java
@@ -1,559 +1,559 @@
/*
* Copyright (C) 2011 QSDN... | false | true | public void onSurfaceCreated(final SurfaceHolder holder) {
if (_debug) Log.d(TAG, "start onSurfaceCreated() [" + this + "]");
super.onSurfaceCreated(holder);
Runnable surfaceCreatedCommand = new Runnable() {
@Override
public void run() {
if (mInitialized) {
if... | public void onSurfaceCreated(final SurfaceHolder holder) {
if (_debug) Log.d(TAG, "start onSurfaceCreated() [" + this + "]");
super.onSurfaceCreated(holder);
Runnable surfaceCreatedCommand = new Runnable() {
@Override
public void run() {
if (mInitialized) {
if... |
diff --git a/genlab.algog.gui.examples/src/genlab/algog/gui/examples/examples/ExampleTestFunctionChakongHaimes.java b/genlab.algog.gui.examples/src/genlab/algog/gui/examples/examples/ExampleTestFunctionChakongHaimes.java
index fae8e13..80ab9dd 100644
--- a/genlab.algog.gui.examples/src/genlab/algog/gui/examples/example... | false | true | public void fillInstance(IGenlabWorkflowInstance workflow) {
// genetic algo host
final NSGA2GeneticExplorationAlgo nsgaAlgo = new NSGA2GeneticExplorationAlgo();
final IAlgoContainerInstance nsgaInstance = (IAlgoContainerInstance)nsgaAlgo.createInstance(workflow);
workflow.addAlgoInstance(nsgaInstance);
... | public void fillInstance(IGenlabWorkflowInstance workflow) {
// genetic algo host
final NSGA2GeneticExplorationAlgo nsgaAlgo = new NSGA2GeneticExplorationAlgo();
final IAlgoContainerInstance nsgaInstance = (IAlgoContainerInstance)nsgaAlgo.createInstance(workflow);
workflow.addAlgoInstance(nsgaInstance);
... |
diff --git a/src/main/java/com/mojang/minecraft/mob/HumanoidMob.java b/src/main/java/com/mojang/minecraft/mob/HumanoidMob.java
index 9bd3742..e0c2753 100644
--- a/src/main/java/com/mojang/minecraft/mob/HumanoidMob.java
+++ b/src/main/java/com/mojang/minecraft/mob/HumanoidMob.java
@@ -1,134 +1,134 @@
package com.mojang... | true | true | public void renderModel(TextureManager var1, float var2, float var3, float var4, float var5,
float var6, float var7) {
if (this.modelName == "sheep") {
renderSheep(var1, var2, var3, var4, var5, var6, var7);
return;
} else if (isInteger(this.modelName)) {
try {
if (block == null) {
block = new ... | public void renderModel(TextureManager var1, float var2, float var3, float var4, float var5,
float var6, float var7) {
if (this.modelName == "sheep") {
renderSheep(var1, var2, var3, var4, var5, var6, var7);
return;
} else if (isInteger(this.modelName)) {
try {
if (block == null) {
block = new ... |
diff --git a/libraries/BridJ/src/main/java/org/bridj/Platform.java b/libraries/BridJ/src/main/java/org/bridj/Platform.java
index a301b3b7..7e13264e 100644
--- a/libraries/BridJ/src/main/java/org/bridj/Platform.java
+++ b/libraries/BridJ/src/main/java/org/bridj/Platform.java
@@ -1,639 +1,639 @@
package org.bridj;
im... | false | true | public static void initLibrary() {
if (inited) {
return;
}
try {
boolean loaded = false;
String forceLibFile = getenvOrProperty("BRIDJ_LIBRARY", "bridj.library", null);
String lib = null;
if (forceLibFile != null) {
... | public static synchronized void initLibrary() {
if (inited) {
return;
}
inited = true;
try {
boolean loaded = false;
String forceLibFile = getenvOrProperty("BRIDJ_LIBRARY", "bridj.library", null);
String lib = null;
if (forceL... |
diff --git a/src/qs/swornshop/Main.java b/src/qs/swornshop/Main.java
index 9bba868..f05b3dd 100644
--- a/src/qs/swornshop/Main.java
+++ b/src/qs/swornshop/Main.java
@@ -1,783 +1,783 @@
package qs.swornshop;
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStream;
import java.io.Inpu... | false | true | public boolean onCommand(CommandSender sender, Command command,
String label, String[] args) {
if (command.getName().equalsIgnoreCase("shop")) {
if (!(sender instanceof Player)) {
sendError(sender, "/shop can only be used by a player");
return true;
}
Player pl = (Player) sender;
ShopSelection... | public boolean onCommand(CommandSender sender, Command command,
String label, String[] args) {
if (command.getName().equalsIgnoreCase("shop")) {
if (!(sender instanceof Player)) {
sendError(sender, "/shop can only be used by a player");
return true;
}
Player pl = (Player) sender;
ShopSelection... |
diff --git a/src/com/cleverua/bb/example/AppSettingsScreen.java b/src/com/cleverua/bb/example/AppSettingsScreen.java
index ba42521..0480ac1 100644
--- a/src/com/cleverua/bb/example/AppSettingsScreen.java
+++ b/src/com/cleverua/bb/example/AppSettingsScreen.java
@@ -1,62 +1,62 @@
package com.cleverua.bb.example;
impo... | false | true | private void initUI() {
try {
AppSettingsApplication.getSettings().initialize();
} catch (SettingsException e) {
Dialog.alert("Unable to load settings: " + e);
}
boolean userChoiceSetting = AppSettingsApplication.getSettingsDelegate().getUserChoice();
... | private void initUI() {
try {
AppSettingsApplication.getSettings().initialize();
} catch (SettingsException e) {
Dialog.alert("Unable to load settings: " + e);
}
boolean userChoiceSetting = AppSettingsApplication.getSettingsDelegate().getUserChoice();
... |
diff --git a/src/main/java/com/github/rconner/anansi/PreOrderTraverser.java b/src/main/java/com/github/rconner/anansi/PreOrderTraverser.java
index b9d7e2e..cd271bb 100644
--- a/src/main/java/com/github/rconner/anansi/PreOrderTraverser.java
+++ b/src/main/java/com/github/rconner/anansi/PreOrderTraverser.java
@@ -1,130 +... | true | true | public Walk<V, E> next() {
while( !iteratorStack.isEmpty() ) {
if( iteratorStack.getFirst().hasNext() ) {
final Walk<V, E> result = iteratorStack.getFirst().next();
iteratorStack.addFirst( adjacency.apply( result.getTo() ).iterator() );
... | public Walk<V, E> next() {
while( !iteratorStack.isEmpty() ) {
if( iteratorStack.getFirst().hasNext() ) {
final Walk<V, E> result = iteratorStack.getFirst().next();
iteratorStack.addFirst( adjacency.apply( result.getTo() ).iterator() );
... |
diff --git a/src/test/java/dk/statsbiblioteket/doms/ingest/reklamepbcoremapper/Tv2PBCoreMapperTest.java b/src/test/java/dk/statsbiblioteket/doms/ingest/reklamepbcoremapper/Tv2PBCoreMapperTest.java
index 9fab6f0..2e54ea4 100644
--- a/src/test/java/dk/statsbiblioteket/doms/ingest/reklamepbcoremapper/Tv2PBCoreMapperTest.j... | true | true | public void testMapCsvDataToPBCoreFiles() throws Exception {
new Tv2PBCoreMapper().mapCsvDataToPBCoreFiles(new File(getClass().getClassLoader().getResource("199901_1.meta.utf8.csv").getPath()),
OUTPUTDIR);
File[] generatedFiles = OUTPUTDIR.listFi... | public void testMapCsvDataToPBCoreFiles() throws Exception {
new Tv2PBCoreMapper().mapCsvDataToPBCoreFiles(new File(getClass().getClassLoader().getResource("199901_1.meta.utf8.csv").getPath()),
OUTPUTDIR);
File[] generatedFiles = OUTPUTDIR.listFi... |
diff --git a/tests/org.bonitasoft.studio.application.test/src/org/bonitasoft/studio/application/test/TestMenus.java b/tests/org.bonitasoft.studio.application.test/src/org/bonitasoft/studio/application/test/TestMenus.java
index 92bac124db..88881c1169 100644
--- a/tests/org.bonitasoft.studio.application.test/src/org/boni... | false | true | public void testNbMenus() {
Shell shell = PlatformUI.getWorkbench().getActiveWorkbenchWindow().getShell();
String menus = "";
int nbRunMenus = 0;
for (MenuItem item : shell.getMenuBar().getItems()) {
menus += "\n"+item.getText();
if (item.getText().toLowerCase... | public void testNbMenus() {
Shell shell = PlatformUI.getWorkbench().getActiveWorkbenchWindow().getShell();
String menus = "";
int nbRunMenus = 0;
for (MenuItem item : shell.getMenuBar().getItems()) {
menus += "\n"+item.getText();
if (item.getText().toLowerCase... |
diff --git a/src/com/github/joakimpersson/tda367/model/tiles/walkable/Fire.java b/src/com/github/joakimpersson/tda367/model/tiles/walkable/Fire.java
index 25540dd..f720ddd 100644
--- a/src/com/github/joakimpersson/tda367/model/tiles/walkable/Fire.java
+++ b/src/com/github/joakimpersson/tda367/model/tiles/walkable/Fire.... | false | true | public Fire(Player fireOwner, Direction direction) {
this.fireOwner = fireOwner;
this.direction = direction;
if (this.direction == Direction.NONE) {
this.image = "fire-mid";
} else if (this.direction.isHorizontal()) {
this.image = "fire-row";
} else if (this.direction.isVertical()) {
this.image = "f... | public Fire(Player fireOwner, Direction direction) {
this.fireOwner = fireOwner;
this.direction = direction;
if (this.direction == null) {
this.image = "fire-area";
} else if (this.direction == Direction.NONE) {
this.image = "fire-mid";
} else if (this.direction.isHorizontal()) {
this.image = "fire-... |
diff --git a/bundles/org.eclipse.team.cvs.core/src/org/eclipse/team/internal/ccvs/core/connection/CVSRepositoryLocation.java b/bundles/org.eclipse.team.cvs.core/src/org/eclipse/team/internal/ccvs/core/connection/CVSRepositoryLocation.java
index abd05939a..8198e6ee3 100644
--- a/bundles/org.eclipse.team.cvs.core/src/org... | true | true | public static CVSRepositoryLocation fromString(String location, boolean validateOnly) throws CVSException {
String partId = null;
try {
// Get the connection method
partId = "CVSRepositoryLocation.parsingMethod";//$NON-NLS-1$
int start = location.indexOf(COLON);
String methodName;
int end;
if (s... | public static CVSRepositoryLocation fromString(String location, boolean validateOnly) throws CVSException {
String partId = null;
try {
// Get the connection method
partId = "CVSRepositoryLocation.parsingMethod";//$NON-NLS-1$
int start = location.indexOf(COLON);
String methodName;
int end;
if (s... |
diff --git a/src/main/java/nz/co/searchwellington/controllers/ResourceEditController.java b/src/main/java/nz/co/searchwellington/controllers/ResourceEditController.java
index 8534f6e9..ab8110b8 100644
--- a/src/main/java/nz/co/searchwellington/controllers/ResourceEditController.java
+++ b/src/main/java/nz/co/searchwell... | true | true | public ModelAndView save(HttpServletRequest request, HttpServletResponse response) throws UnsupportedEncodingException {
request.setCharacterEncoding("UTF-8");
response.setCharacterEncoding("UTF-8");
final ModelAndView modelAndView = new ModelAndView("savedResource");
commonM... | public ModelAndView save(HttpServletRequest request, HttpServletResponse response) throws UnsupportedEncodingException {
request.setCharacterEncoding("UTF-8");
response.setCharacterEncoding("UTF-8");
final ModelAndView modelAndView = new ModelAndView("savedResource");
commonM... |
diff --git a/src/main/java/org/atlasapi/output/simple/ItemModelSimplifier.java b/src/main/java/org/atlasapi/output/simple/ItemModelSimplifier.java
index b8407e86a..304a33acc 100644
--- a/src/main/java/org/atlasapi/output/simple/ItemModelSimplifier.java
+++ b/src/main/java/org/atlasapi/output/simple/ItemModelSimplifier.... | true | true | private void copyProperties(Item fullItem, org.atlasapi.media.entity.simple.Item simpleItem, Set<Annotation> annotations, ApplicationConfiguration config) {
copyBasicContentAttributes(fullItem, simpleItem, annotations, config);
simpleItem.setType(EntityType.from(fullItem).toString());
... | private void copyProperties(Item fullItem, org.atlasapi.media.entity.simple.Item simpleItem, Set<Annotation> annotations, ApplicationConfiguration config) {
copyBasicContentAttributes(fullItem, simpleItem, annotations, config);
simpleItem.setType(EntityType.from(fullItem).toString());
... |
diff --git a/src/com/itmill/toolkit/terminal/gwt/client/ui/ITabsheet.java b/src/com/itmill/toolkit/terminal/gwt/client/ui/ITabsheet.java
index e0dff3929..da61c3cc9 100644
--- a/src/com/itmill/toolkit/terminal/gwt/client/ui/ITabsheet.java
+++ b/src/com/itmill/toolkit/terminal/gwt/client/ui/ITabsheet.java
@@ -1,252 +1,25... | true | true | public void updateFromUIDL(UIDL uidl, ApplicationConnection client) {
super.updateFromUIDL(uidl, client);
// Add proper stylenames for all elements (easier to prevent unwanted
// style inheritance)
if (uidl.hasAttribute("style")) {
final String[] styles = uidl.getStringA... | public void updateFromUIDL(UIDL uidl, ApplicationConnection client) {
super.updateFromUIDL(uidl, client);
// Add proper stylenames for all elements (easier to prevent unwanted
// style inheritance)
if (uidl.hasAttribute("style")) {
final String[] styles = uidl.getStringA... |
diff --git a/source/org/jivesoftware/smackx/provider/XHTMLExtensionProvider.java b/source/org/jivesoftware/smackx/provider/XHTMLExtensionProvider.java
index 9d8e6c35..f216ef3c 100644
--- a/source/org/jivesoftware/smackx/provider/XHTMLExtensionProvider.java
+++ b/source/org/jivesoftware/smackx/provider/XHTMLExtensionPro... | true | true | public PacketExtension parseExtension(XmlPullParser parser)
throws Exception {
XHTMLExtension xhtmlExtension = new XHTMLExtension();
boolean done = false;
StringBuffer buffer = null;
while (!done) {
int eventType = parser.next();
if (eventType == XmlPu... | public PacketExtension parseExtension(XmlPullParser parser)
throws Exception {
XHTMLExtension xhtmlExtension = new XHTMLExtension();
boolean done = false;
StringBuffer buffer = new StringBuffer();;
while (!done) {
int eventType = parser.next();
if (eve... |
diff --git a/src/com/vaadin/terminal/gwt/client/ui/VOverlay.java b/src/com/vaadin/terminal/gwt/client/ui/VOverlay.java
index fb6831e31..43f08b6a0 100644
--- a/src/com/vaadin/terminal/gwt/client/ui/VOverlay.java
+++ b/src/com/vaadin/terminal/gwt/client/ui/VOverlay.java
@@ -1,296 +1,297 @@
/*
@ITMillApache2LicenseForJa... | true | true | private void updateShadowSizeAndPosition(final double progress) {
// Don't do anything if overlay element is not attached
if (!isAttached()) {
return;
}
// Calculate proper z-index
String zIndex = null;
try {
// Odd behaviour with Windows Hoste... | private void updateShadowSizeAndPosition(final double progress) {
// Don't do anything if overlay element is not attached
if (!isAttached()) {
return;
}
// Calculate proper z-index
String zIndex = null;
try {
// Odd behaviour with Windows Hoste... |
diff --git a/android/src/gov/nasa/arc/geocam/talk/activity/AuthenticatedBaseActivity.java b/android/src/gov/nasa/arc/geocam/talk/activity/AuthenticatedBaseActivity.java
index 4404d74..bd066a2 100644
--- a/android/src/gov/nasa/arc/geocam/talk/activity/AuthenticatedBaseActivity.java
+++ b/android/src/gov/nasa/arc/geocam/... | true | true | public boolean onOptionsItemSelected(MenuItem item) {
// Handle item selection
switch (item.getItemId()) {
case R.id.logout_menu_button:
try {
Log.i("Talk", "Logout Menu Item");
UIUtils.logout(siteAuth);
this.startActivity(new Intent(this, GeoCamTalkLogon.class));
} catch (Exception e) {... | public boolean onOptionsItemSelected(MenuItem item) {
// Handle item selection
switch (item.getItemId()) {
case R.id.logout_menu_button:
try {
Log.i("Talk", "Logout Menu Item");
UIUtils.logout(siteAuth);
this.startActivity(new Intent(this, GeoCamTalkLogon.class));
} catch (Exception e) {... |
diff --git a/plugins/org.eclipse.xtext.xtend2/src/org/eclipse/xtext/xtend2/formatting/MemberFromSuperImplementor.java b/plugins/org.eclipse.xtext.xtend2/src/org/eclipse/xtext/xtend2/formatting/MemberFromSuperImplementor.java
index ac9864601..1c0dad9ff 100644
--- a/plugins/org.eclipse.xtext.xtend2/src/org/eclipse/xtext/... | false | true | protected void appendExecutable(final XtendClass overrider, JvmExecutable executableFromSuper,
IAppendable appendable) {
appendable.openScope();
boolean isOperation = executableFromSuper instanceof JvmOperation;
final JvmGenericType overridingType = associations.getInferredType(overrider);
final ITypeArgume... | protected void appendExecutable(final XtendClass overrider, JvmExecutable executableFromSuper,
IAppendable appendable) {
appendable.openScope();
boolean isOperation = executableFromSuper instanceof JvmOperation;
final JvmGenericType overridingType = associations.getInferredType(overrider);
final ITypeArgume... |
diff --git a/javasvn/src/org/tmatesoft/svn/core/io/diff/SVNDiffWindowBuilder.java b/javasvn/src/org/tmatesoft/svn/core/io/diff/SVNDiffWindowBuilder.java
index b95c78945..30776f627 100644
--- a/javasvn/src/org/tmatesoft/svn/core/io/diff/SVNDiffWindowBuilder.java
+++ b/javasvn/src/org/tmatesoft/svn/core/io/diff/SVNDiffWi... | true | true | public boolean accept(InputStream is, ISVNEditor consumer, String path) throws SVNException {
switch (myState) {
case HEADER:
try {
for(int i = 0; i < myHeader.length; i++) {
if (myHeader[i] < 0) {
int... | public boolean accept(InputStream is, ISVNEditor consumer, String path) throws SVNException {
switch (myState) {
case HEADER:
try {
for(int i = 0; i < myHeader.length; i++) {
if (myHeader[i] < 0) {
int... |
diff --git a/src/com/android/settings/fuelgauge/BatteryHistoryChart.java b/src/com/android/settings/fuelgauge/BatteryHistoryChart.java
index 25d86098f..acd9ee447 100644
--- a/src/com/android/settings/fuelgauge/BatteryHistoryChart.java
+++ b/src/com/android/settings/fuelgauge/BatteryHistoryChart.java
@@ -1,672 +1,672 @@... | true | true | protected void onSizeChanged(int w, int h, int oldw, int oldh) {
super.onSizeChanged(w, h, oldw, oldh);
int textHeight = mTextDescent - mTextAscent;
mThinLineWidth = (int)TypedValue.applyDimension(TypedValue.COMPLEX_UNIT_DIP,
2, getResources().getDisplayMetrics());
... | protected void onSizeChanged(int w, int h, int oldw, int oldh) {
super.onSizeChanged(w, h, oldw, oldh);
int textHeight = mTextDescent - mTextAscent;
mThinLineWidth = (int)TypedValue.applyDimension(TypedValue.COMPLEX_UNIT_DIP,
2, getResources().getDisplayMetrics());
... |
diff --git a/lab5/src/map/SimpleHashMap.java b/lab5/src/map/SimpleHashMap.java
index d86bd2d..9493bdc 100644
--- a/lab5/src/map/SimpleHashMap.java
+++ b/lab5/src/map/SimpleHashMap.java
@@ -1,228 +1,228 @@
package map;
import java.util.Iterator;
public class SimpleHashMap<K,V> implements Map<K,V> {
public st... | false | true | public V remove(Object arg0) {
if (arg0 == null) {
throw new NullPointerException();
}
K k = (K)arg0;
int i = index(k);
LinkIterator itr = new LinkIterator(i);
if (itr.hasNext()) {
Entry<K,V> prev = itr.next();
if (prev.key.equals(k)) {
table[i] = prev.next;
size--;
return prev.value;
... | public V remove(Object arg0) {
if (arg0 == null) {
throw new NullPointerException();
}
K k = (K)arg0;
int i = index(k);
LinkIterator itr = new LinkIterator(i);
if (itr.hasNext()) {
Entry<K,V> prev = itr.next();
if (prev.key.equals(k)) {
table[i] = prev.next;
size--;
return prev.value;
... |
diff --git a/src/com/vaadin/demo/featurebrowser/TableExample.java b/src/com/vaadin/demo/featurebrowser/TableExample.java
index f1dfc1f18..1c9ac6c2d 100644
--- a/src/com/vaadin/demo/featurebrowser/TableExample.java
+++ b/src/com/vaadin/demo/featurebrowser/TableExample.java
@@ -1,298 +1,298 @@
/*
@ITMillApache2License... | false | true | public TableExample() {
VerticalLayout margin = new VerticalLayout();
margin.setMargin(true);
TabSheet root = new TabSheet();
setCompositionRoot(margin);
margin.addComponent(root);
// main layout
final VerticalLayout main = new VerticalLayout();
root... | public TableExample() {
VerticalLayout margin = new VerticalLayout();
margin.setMargin(true);
TabSheet root = new TabSheet();
setCompositionRoot(margin);
margin.addComponent(root);
// main layout
final VerticalLayout main = new VerticalLayout();
main... |
diff --git a/nexus/nexus-test-harness/nexus-test-harness-launcher/src/test/java/org/sonatype/nexus/test/utils/ServiceStatusUtil.java b/nexus/nexus-test-harness/nexus-test-harness-launcher/src/test/java/org/sonatype/nexus/test/utils/ServiceStatusUtil.java
index 589eeadce..365eab8c1 100644
--- a/nexus/nexus-test-harness/... | true | true | public static boolean waitForStart( NexusClient client )
throws NexusClientException, NexusConnectionException
{
System.setProperty( NexusRestClient.WAIT_FOR_START_TIMEOUT_KEY, "1000" );
for ( int i = 0; i < 40; i++ )
{
if ( client.isNexusStarted( true ) )
... | public static boolean waitForStart( NexusClient client )
throws NexusClientException, NexusConnectionException
{
System.setProperty( NexusRestClient.WAIT_FOR_START_TIMEOUT_KEY, "1000" );
for ( int i = 0; i < 240; i++ )
{
if ( client.isNexusStarted( true ) )
... |
diff --git a/ScreenManager/smanager-ui/src/main/java/com/atanor/smanager/client/ui/NavigationArea.java b/ScreenManager/smanager-ui/src/main/java/com/atanor/smanager/client/ui/NavigationArea.java
index 614159d..64d20e6 100644
--- a/ScreenManager/smanager-ui/src/main/java/com/atanor/smanager/client/ui/NavigationArea.java... | true | true | public NavigationArea(final SimpleEventBus bus) {
super();
this.setMembersMargin(10);
this.setOverflow(Overflow.HIDDEN);
this.setShowResizeBar(true);
final SectionStack sectionStack = new SectionStack();
sectionStack.setShowExpandControls(true);
sectionStack.setAnimateSections(true);
sectionStack.se... | public NavigationArea(final SimpleEventBus bus) {
super();
this.setMembersMargin(10);
this.setOverflow(Overflow.HIDDEN);
this.setShowResizeBar(true);
final SectionStack sectionStack = new SectionStack();
sectionStack.setShowExpandControls(true);
sectionStack.setAnimateSections(true);
sectionStack.se... |
diff --git a/src/main/java/tconstruct/armor/ArmorProxyClient.java b/src/main/java/tconstruct/armor/ArmorProxyClient.java
index 2461b5052..c9288d712 100644
--- a/src/main/java/tconstruct/armor/ArmorProxyClient.java
+++ b/src/main/java/tconstruct/armor/ArmorProxyClient.java
@@ -1,503 +1,505 @@
package tconstruct.armor;
... | true | true | public void renderHealthbar (RenderGameOverlayEvent.Pre event)
{
if(Loader.isModLoaded("rpghud")) // uses different display, displays health correctly by itself.
return;
if (!Loader.isModLoaded("tukmc_Vz") || Loader.isModLoaded("borderlands"))// Loader check to avoid conflicting
... | public void renderHealthbar (RenderGameOverlayEvent.Pre event)
{
if(Loader.isModLoaded("rpghud")) // uses different display, displays health correctly by itself.
return;
if (!Loader.isModLoaded("tukmc_Vz") || Loader.isModLoaded("borderlands"))// Loader check to avoid conflicting
... |
diff --git a/src/de/ub0r/android/smsdroid/MessageList.java b/src/de/ub0r/android/smsdroid/MessageList.java
index a6a0977..5592c64 100644
--- a/src/de/ub0r/android/smsdroid/MessageList.java
+++ b/src/de/ub0r/android/smsdroid/MessageList.java
@@ -1,550 +1,551 @@
/*
* Copyright (C) 2010 Felix Bechstein
*
* This fi... | true | true | public final boolean onItemLongClick(final AdapterView<?> parent,
final View view, final int position, final long id) {
final Context context = this;
final Message m = Message.getMessage(this, (Cursor) parent
.getItemAtPosition(position));
final Uri target = m.getUri();
final int read = m.getRead();
f... | public final boolean onItemLongClick(final AdapterView<?> parent,
final View view, final int position, final long id) {
final Context context = this;
final Message m = Message.getMessage(this, (Cursor) parent
.getItemAtPosition(position));
final Uri target = m.getUri();
final int read = m.getRead();
f... |
diff --git a/modules/cpr/src/test/java/org/atmosphere/cpr/ManagedAtmosphereHandlerTest.java b/modules/cpr/src/test/java/org/atmosphere/cpr/ManagedAtmosphereHandlerTest.java
index b10038dcf..f549482b3 100644
--- a/modules/cpr/src/test/java/org/atmosphere/cpr/ManagedAtmosphereHandlerTest.java
+++ b/modules/cpr/src/test/j... | true | true | public void create() throws Throwable {
framework = new AtmosphereFramework();
framework.setDefaultBroadcasterClassName(SimpleBroadcaster.class.getName()) ;
String name = new File(".").getAbsolutePath();
framework.setLibPath(name.substring(0, name.length() - 1) + "/modules/cpr/target... | public void create() throws Throwable {
framework = new AtmosphereFramework();
framework.setDefaultBroadcasterClassName(SimpleBroadcaster.class.getName()) ;
String name = new File(".").getAbsolutePath();
framework.setLibPath(name.substring(0, name.length() - 1) + "/target/");
... |
diff --git a/src/it/groovydoc/src/test/java/gmavenplus/SomeClassTest.java b/src/it/groovydoc/src/test/java/gmavenplus/SomeClassTest.java
index 36c46b51..13ca0151 100644
--- a/src/it/groovydoc/src/test/java/gmavenplus/SomeClassTest.java
+++ b/src/it/groovydoc/src/test/java/gmavenplus/SomeClassTest.java
@@ -1,32 +1,32 @@... | true | true | public void testSomeMethod() {
File generatedGroovydoc = new File("target/gapidocs/DefaultPackage/SomeClass.html");
Assert.assertTrue(generatedGroovydoc.exists());
}
| public void testSomeMethod() {
File generatedGroovydoc = new File("target/gapidocs/gmavenplus/SomeClass.html");
Assert.assertTrue(generatedGroovydoc.exists());
}
|
diff --git a/src/test/java/org/elasticsearch/index/mapper/geo/GeoEncodingTests.java b/src/test/java/org/elasticsearch/index/mapper/geo/GeoEncodingTests.java
index f02e15d8337..f52363e89ae 100644
--- a/src/test/java/org/elasticsearch/index/mapper/geo/GeoEncodingTests.java
+++ b/src/test/java/org/elasticsearch/index/mapp... | true | true | public void test() {
for (int i = 0; i < 10000; ++i) {
final double lat = randomDouble() * 180 - 90;
final double lon = randomDouble() * 360 - 180;
final Distance precision = new Distance(randomDouble() * 10, randomFrom(Arrays.asList(DistanceUnit.MILLIMETERS, DistanceUnit... | public void test() {
for (int i = 0; i < 10000; ++i) {
final double lat = randomDouble() * 180 - 90;
final double lon = randomDouble() * 360 - 180;
final Distance precision = new Distance(1+(randomDouble() * 9), randomFrom(Arrays.asList(DistanceUnit.MILLIMETERS, DistanceU... |
diff --git a/cruisecontrol/reporting/dashboard/test/unit/net/sourceforge/cruisecontrol/dashboard/testhelpers/FilesystemUtils.java b/cruisecontrol/reporting/dashboard/test/unit/net/sourceforge/cruisecontrol/dashboard/testhelpers/FilesystemUtils.java
index 3ce9d1c6..ef970942 100644
--- a/cruisecontrol/reporting/dashboard... | false | true | public static File createFile(String filename, File directory) throws IOException {
final File file = new File(directory, filename);
// attempt workaround for intermitent w2k error:
// java.io.IOException: Access is denied
// at java.io.WinNTFileSystem.createFileExclusively(Native M... | public static File createFile(String filename, File directory) throws IOException {
final File file = new File(directory, filename);
// attempt workaround for intermitent w2k error:
// java.io.IOException: Access is denied
// at java.io.WinNTFileSystem.createFileExclusively(Native M... |
diff --git a/src/com/android/nfc/NfcService.java b/src/com/android/nfc/NfcService.java
index f863176..9553671 100755
--- a/src/com/android/nfc/NfcService.java
+++ b/src/com/android/nfc/NfcService.java
@@ -1,2632 +1,2632 @@
/*
* Copyright (C) 2010 The Android Open Source Project
*
* Licensed under the Apache Lice... | true | true | public void handleMessage(Message msg) {
switch (msg.what) {
case MSG_MOCK_NDEF: {
NdefMessage ndefMsg = (NdefMessage) msg.obj;
Tag tag = Tag.createMockTag(new byte[] { 0x00 },
new int[] { },
new Bundle[] { });
... | public void handleMessage(Message msg) {
switch (msg.what) {
case MSG_MOCK_NDEF: {
NdefMessage ndefMsg = (NdefMessage) msg.obj;
Tag tag = Tag.createMockTag(new byte[] { 0x00 },
new int[] { },
new Bundle[] { });
... |
diff --git a/src/test/java/hudson/remoting/ChannelRunner.java b/src/test/java/hudson/remoting/ChannelRunner.java
index 1472b3c6..0be25f94 100644
--- a/src/test/java/hudson/remoting/ChannelRunner.java
+++ b/src/test/java/hudson/remoting/ChannelRunner.java
@@ -1,184 +1,184 @@
/*
* The MIT License
*
* Copyright (c... | false | true | public Channel start() throws Exception {
final FastPipedInputStream in1 = new FastPipedInputStream();
final FastPipedOutputStream out1 = new FastPipedOutputStream(in1);
final FastPipedInputStream in2 = new FastPipedInputStream();
final FastPipedOutputStream out2... | public Channel start() throws Exception {
final FastPipedInputStream in1 = new FastPipedInputStream();
final FastPipedOutputStream out1 = new FastPipedOutputStream(in1);
final FastPipedInputStream in2 = new FastPipedInputStream();
final FastPipedOutputStream out2... |
diff --git a/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasks/ui/actions/RepositoryElementActionGroup.java b/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasks/ui/actions/RepositoryElementActionGroup.java
index 46427a314..1ff2510ea 100644
--- a/org.eclipse.mylyn.tasks.ui/src/org/eclipse/myly... | false | true | public void fillContextMenu(final IMenuManager manager) {
manager.add(new Separator(ID_SEPARATOR_NEW)); // new, schedule
manager.add(new GroupMarker(ID_SEPARATOR_NAVIGATE)); // mark, go into, go up
manager.add(new Separator(ID_SEPARATOR_OPEN)); // open, activate
manager.add(new Separator(ID_SEPARATOR_EDIT)); /... | public void fillContextMenu(final IMenuManager manager) {
manager.add(new Separator(ID_SEPARATOR_NEW)); // new, schedule
manager.add(new GroupMarker(ID_SEPARATOR_NAVIGATE)); // mark, go into, go up
manager.add(new Separator(ID_SEPARATOR_OPEN)); // open, activate
manager.add(new Separator(ID_SEPARATOR_EDIT)); /... |
diff --git a/modules/org.restlet/src/org/restlet/data/Status.java b/modules/org.restlet/src/org/restlet/data/Status.java
index 237b1bdcc..ca7478dad 100644
--- a/modules/org.restlet/src/org/restlet/data/Status.java
+++ b/modules/org.restlet/src/org/restlet/data/Status.java
@@ -1,1521 +1,1521 @@
/*
* Copyright 2005-20... | false | true | public String getUri() {
String result = this.uri;
if (result == null) {
switch (this.code) {
case 100:
result = BASE_HTTP + "#sec10.1.1";
break;
case 101:
result = BASE_HTTP + "#sec10.1.2";
break;
... | public String getUri() {
String result = this.uri;
if (result == null) {
switch (this.code) {
case 100:
result = BASE_HTTP + "#sec10.1.1";
break;
case 101:
result = BASE_HTTP + "#sec10.1.2";
break;
... |
diff --git a/src/main/java/hudson/plugins/mavendeploymentlinker/MavenDeploymentProjectLinkerAction.java b/src/main/java/hudson/plugins/mavendeploymentlinker/MavenDeploymentProjectLinkerAction.java
index 78dfc4e..d85fd3f 100644
--- a/src/main/java/hudson/plugins/mavendeploymentlinker/MavenDeploymentProjectLinkerAction.j... | true | true | public Action getLatestReleaseDeployments() {
RunList<?> builds = project.getBuilds();
for (Run run : builds) {
if (isSuccessful(run)) {
MavenDeploymentLinkerAction linkerAction = run.getAction(MavenDeploymentLinkerAction.class);
if (!linkerAction.isSnapsh... | public Action getLatestReleaseDeployments() {
RunList<?> builds = project.getBuilds();
for (Run run : builds) {
if (isSuccessful(run)) {
MavenDeploymentLinkerAction linkerAction = run.getAction(MavenDeploymentLinkerAction.class);
if (linkerAction != null &... |
diff --git a/webui/portal/src/main/java/org/exoplatform/portal/webui/login/UILoginForm.java b/webui/portal/src/main/java/org/exoplatform/portal/webui/login/UILoginForm.java
index 6c8b605e5..6eeaded2f 100644
--- a/webui/portal/src/main/java/org/exoplatform/portal/webui/login/UILoginForm.java
+++ b/webui/portal/src/main/... | true | true | public void execute(Event<UILoginForm> event) throws Exception {
UILoginForm uiForm = event.getSource();
String username = uiForm.getUIStringInput(USER_NAME).getValue();
String password = uiForm.getUIStringInput(PASSWORD).getValue();
OrganizationService orgService = uiForm.getApplicat... | public void execute(Event<UILoginForm> event) throws Exception {
UILoginForm uiForm = event.getSource();
String username = uiForm.getUIStringInput(USER_NAME).getValue();
String password = uiForm.getUIStringInput(PASSWORD).getValue();
OrganizationService orgService = uiForm.getApplicat... |
diff --git a/ace/component/src/org/icefaces/ace/component/menu/BaseMenuRenderer.java b/ace/component/src/org/icefaces/ace/component/menu/BaseMenuRenderer.java
index aba66372d..cd6020951 100644
--- a/ace/component/src/org/icefaces/ace/component/menu/BaseMenuRenderer.java
+++ b/ace/component/src/org/icefaces/ace/componen... | true | true | protected void encodeMenuItem(FacesContext context, MenuItem menuItem) throws IOException {
String clientId = menuItem.getClientId(context);
ResponseWriter writer = context.getResponseWriter();
String icon = menuItem.getIcon();
if(menuItem.shouldRenderChildren()) {
renderChildren(context, me... | protected void encodeMenuItem(FacesContext context, MenuItem menuItem) throws IOException {
String clientId = menuItem.getClientId(context);
ResponseWriter writer = context.getResponseWriter();
String icon = menuItem.getIcon();
if(menuItem.shouldRenderChildren()) {
renderChildren(context, me... |
diff --git a/src/com/motorola/android/fmradio/FMRadioService.java b/src/com/motorola/android/fmradio/FMRadioService.java
index 78763bc..da5cf79 100644
--- a/src/com/motorola/android/fmradio/FMRadioService.java
+++ b/src/com/motorola/android/fmradio/FMRadioService.java
@@ -1,782 +1,782 @@
package com.motorola.android.f... | true | true | public void onCommandComplete(int cmd, int status, Object value) {
if (LOGV) Log.v(TAG, "onCommandComplete, cmd = " + cmd + " status = " + status + " value = " + value);
FMRadioUtil.checkCmdInList(cmd, mFMCmdList);
switch (cmd) {
case IFMCommand.FM_CMD_TUNE_... | public void onCommandComplete(int cmd, int status, Object value) {
if (LOGV) Log.v(TAG, "onCommandComplete, cmd = " + cmd + " status = " + status + " value = " + value);
FMRadioUtil.checkCmdInList(cmd, mFMCmdList);
switch (cmd) {
case IFMCommand.FM_CMD_TUNE_... |
diff --git a/src/ant/org/apache/hadoop/ant/condition/DfsBaseConditional.java b/src/ant/org/apache/hadoop/ant/condition/DfsBaseConditional.java
index 3c69c5c15..33cf52b1c 100644
--- a/src/ant/org/apache/hadoop/ant/condition/DfsBaseConditional.java
+++ b/src/ant/org/apache/hadoop/ant/condition/DfsBaseConditional.java
@@ ... | true | true | protected int postCmd(int exit_code) {
exit_code = super.postCmd(exit_code);
result = exit_code == 1;
return exit_code;
}
| protected int postCmd(int exit_code) {
exit_code = super.postCmd(exit_code);
result = exit_code == 0;
return exit_code;
}
|
diff --git a/src/main/java/org/structnetalign/cross/SimpleCrossingManager.java b/src/main/java/org/structnetalign/cross/SimpleCrossingManager.java
index eb596b9..d0814bb 100644
--- a/src/main/java/org/structnetalign/cross/SimpleCrossingManager.java
+++ b/src/main/java/org/structnetalign/cross/SimpleCrossingManager.java... | true | true | public void cross(CleverGraph graph) {
ExecutorService pool = Executors.newFixedThreadPool(nCores);
try {
// depressingly, this used to be List<Future<Pair<Map<Integer,Double>>>>
// I'm glad that's no longer the case
CompletionService<InteractionEdgeUpdate> completion = new ExecutorCompletionService<>(... | public void cross(CleverGraph graph) {
ExecutorService pool = Executors.newFixedThreadPool(nCores);
try {
// depressingly, this used to be List<Future<Pair<Map<Integer,Double>>>>
// I'm glad that's no longer the case
CompletionService<InteractionEdgeUpdate> completion = new ExecutorCompletionService<>(... |
diff --git a/ide/eclipse/dependencies/maven-bpel-plugin/src/main/java/org/wso2/maven/bpel/artifact/BPELMojo.java b/ide/eclipse/dependencies/maven-bpel-plugin/src/main/java/org/wso2/maven/bpel/artifact/BPELMojo.java
index 841ea4bb7..9a7d03cd3 100644
--- a/ide/eclipse/dependencies/maven-bpel-plugin/src/main/java/org/wso2... | true | true | public void createZip(File project) throws MojoExecutionException {
try {
String bpelArtifactFullPath = getBPELProjectName(project);
File bpelArtifactFile = new File(bpelArtifactFullPath);
String artifactType = getType();
String artifactName=mavenProject.getArtifactId()+"."+artifactType;
File archive ... | public void createZip(File project) throws MojoExecutionException {
try {
String bpelArtifactFullPath = getBPELProjectName(project);
File bpelArtifactFile = new File(bpelArtifactFullPath);
String artifactType = getType();
String artifactName=mavenProject.getArtifactId() + "-" + mavenProject.getVersion() ... |
diff --git a/src/share/classes/com/sun/tools/javafx/main/RecognizedOptions.java b/src/share/classes/com/sun/tools/javafx/main/RecognizedOptions.java
index 342ce887b..7d0608a95 100644
--- a/src/share/classes/com/sun/tools/javafx/main/RecognizedOptions.java
+++ b/src/share/classes/com/sun/tools/javafx/main/RecognizedOpti... | true | true | public static Option[] getAll(final OptionHelper helper) {
return new Option[]{
new Option(G, "opt.g"),
new Option(G_NONE, "opt.g.none") {
public boolean process(Options options, String option) {
options.put("-g:", "none");
return false;
}
},
... | public static Option[] getAll(final OptionHelper helper) {
return new Option[]{
new Option(G, "opt.g"),
new Option(G_NONE, "opt.g.none") {
public boolean process(Options options, String option) {
options.put("-g:", "none");
return false;
}
},
... |
diff --git a/misc/src/main/java/struct/recur/BinaryTree.java b/misc/src/main/java/struct/recur/BinaryTree.java
index 9b1a8c8..208b23b 100644
--- a/misc/src/main/java/struct/recur/BinaryTree.java
+++ b/misc/src/main/java/struct/recur/BinaryTree.java
@@ -1,236 +1,236 @@
package struct.recur;
import java.lang.reflect.... | false | true | public static int getDepth(BinaryTreeNode head) {
int _leftDepth = 0;
int _maxDepth = 0;
Stack<BinaryTreeNode> _nodeStack = new Stack<BinaryTreeNode>();
BinaryTreeNode _tmp = head;
_nodeStack.push(_tmp);
System.out.println(_tmp.data);
_leftDepth++;
while (!_nodeStack.isEmpty()) {
_tmp = _nodeStack.l... | public static int getDepth(BinaryTreeNode head) {
int _leftDepth = 0;
int _maxDepth = 0;
Stack<BinaryTreeNode> _nodeStack = new Stack<BinaryTreeNode>();
BinaryTreeNode _tmp = head;
_nodeStack.push(_tmp);
System.out.println(_tmp.data);
_leftDepth++;
while (!_nodeStack.isEmpty()) {
_tmp = _nodeStack.l... |
diff --git a/CoreComponents/src/org/sleuthkit/autopsy/corecomponents/DataContentViewerMedia.java b/CoreComponents/src/org/sleuthkit/autopsy/corecomponents/DataContentViewerMedia.java
index 2ed1a3fdc..86b5e330c 100644
--- a/CoreComponents/src/org/sleuthkit/autopsy/corecomponents/DataContentViewerMedia.java
+++ b/CoreCom... | true | true | private void play() {
if (jFile == null || !jFile.exists()) {
progressLabel.setText("Error buffering file");
return;
}
ClockTime dur = null;
synchronized (playbinLock) {
playbin2.play(); // must p... | private void play() {
if (jFile == null || !jFile.exists()) {
progressLabel.setText("Error buffering file");
return;
}
ClockTime dur = null;
synchronized (playbinLock) {
playbin2.play(); // must p... |
diff --git a/src/com/dmdirc/commandparser/commands/global/Ifplugin.java b/src/com/dmdirc/commandparser/commands/global/Ifplugin.java
index 3d38e5f3b..910c7dbf5 100644
--- a/src/com/dmdirc/commandparser/commands/global/Ifplugin.java
+++ b/src/com/dmdirc/commandparser/commands/global/Ifplugin.java
@@ -1,126 +1,126 @@
/*... | true | true | public void execute(final InputWindow origin, final boolean isSilent,
final String... args) {
if (args.length <= 1) {
sendLine(origin, isSilent, "commandUsage", Config.getCommandChar(),
"ifplugin", "<[!]plugin> <command>");
return;
}
... | public void execute(final InputWindow origin, final boolean isSilent,
final String... args) {
if (args.length <= 1) {
sendLine(origin, isSilent, "commandUsage", Config.getCommandChar(),
"ifplugin", "<[!]plugin> <command>");
return;
}
... |
diff --git a/bundles/org.eclipse.equinox.p2.publisher/src/org/eclipse/equinox/p2/publisher/eclipse/AdviceFileAdvice.java b/bundles/org.eclipse.equinox.p2.publisher/src/org/eclipse/equinox/p2/publisher/eclipse/AdviceFileAdvice.java
index 00785a27a..0980e6020 100644
--- a/bundles/org.eclipse.equinox.p2.publisher/src/org/... | true | true | private static Map loadAdviceMap(IPath basePath, IPath adviceFilePath) {
File location = basePath.toFile();
if (location == null || !location.exists())
return Collections.EMPTY_MAP;
ZipFile jar = null;
InputStream stream = null;
try {
if (location.isDirectory()) {
File adviceFile = new File(locati... | private static Map loadAdviceMap(IPath basePath, IPath adviceFilePath) {
File location = basePath.toFile();
if (location == null || !location.exists())
return Collections.EMPTY_MAP;
ZipFile jar = null;
InputStream stream = null;
try {
if (location.isDirectory()) {
File adviceFile = new File(locati... |
diff --git a/rms/org.eclipse.ptp.rm.proxy.core/src/org/eclipse/ptp/rm/proxy/core/event/NodeEventFactory.java b/rms/org.eclipse.ptp.rm.proxy.core/src/org/eclipse/ptp/rm/proxy/core/event/NodeEventFactory.java
index 9c24d866b..3bc5e2e28 100644
--- a/rms/org.eclipse.ptp.rm.proxy.core/src/org/eclipse/ptp/rm/proxy/core/event... | true | true | public IProxyEvent createChangeEvent(String[] args) {
return fEventFactory.newProxyRuntimeJobChangeEvent(-1, args);
}
| public IProxyEvent createChangeEvent(String[] args) {
return fEventFactory.newProxyRuntimeNodeChangeEvent(-1, args);
}
|
diff --git a/Mediasystem/src/main/java/hs/mediasystem/dao/CastingsFetcher.java b/Mediasystem/src/main/java/hs/mediasystem/dao/CastingsFetcher.java
index cf80d4c7..2e853bcc 100644
--- a/Mediasystem/src/main/java/hs/mediasystem/dao/CastingsFetcher.java
+++ b/Mediasystem/src/main/java/hs/mediasystem/dao/CastingsFetcher.ja... | true | true | public List<Casting> fetch(Item item) {
if(item.getId() == 0) {
return new ArrayList<>(0);
}
try(Connection connection = connectionProvider.get();
PreparedStatement statement = connection.prepareStatement("SELECT role, charactername, index, p.id, p.name, p.photourl, p.photo IS NOT NULL AS h... | public List<Casting> fetch(Item item) {
if(item.getId() == 0) {
return new ArrayList<>(0);
}
try(Connection connection = connectionProvider.get();
PreparedStatement statement = connection.prepareStatement("SELECT role, charactername, index, p.id, p.name, p.photourl, p.photo IS NOT NULL AS h... |
diff --git a/org.maven.ide.eclipse.editor/src/org/maven/ide/eclipse/editor/pom/MavenPomEditor.java b/org.maven.ide.eclipse.editor/src/org/maven/ide/eclipse/editor/pom/MavenPomEditor.java
index fc00db7d..de4df0b0 100644
--- a/org.maven.ide.eclipse.editor/src/org/maven/ide/eclipse/editor/pom/MavenPomEditor.java
+++ b/org... | true | true | public void resourceChanged(final IResourceChangeEvent event) {
if(pomFile == null) {
return;
}
//handle project delete
if(event.getType() == IResourceChangeEvent.PRE_CLOSE || event.getType() == IResourceChangeEvent.PRE_DELETE) {
if(pomFile.getProject().equals(event.getResource())) {
... | public void resourceChanged(final IResourceChangeEvent event) {
if(pomFile == null) {
return;
}
//handle project delete
if(event.getType() == IResourceChangeEvent.PRE_CLOSE || event.getType() == IResourceChangeEvent.PRE_DELETE) {
if(pomFile.getProject().equals(event.getResource())) {
... |
diff --git a/src/com/example/digitalmeasuringtape/MainActivity.java b/src/com/example/digitalmeasuringtape/MainActivity.java
index ed52bce..bf9bc10 100644
--- a/src/com/example/digitalmeasuringtape/MainActivity.java
+++ b/src/com/example/digitalmeasuringtape/MainActivity.java
@@ -1,472 +1,472 @@
package com.example.di... | false | true | public void Measure(){
System.out.println("Calling Measure");
Collect();
pi_string = "calculating";
handler.sendEmptyMessage(0);
measurements.trim(greatestX);
measurements.unravel();
//saving data
String xString = measurements.listToString(measurements.xData, "x");
String yString = measure... | public void Measure(){
System.out.println("Calling Measure");
Collect();
pi_string = "calculating";
handler.sendEmptyMessage(0);
measurements.trim(greatestX);
measurements.unravel();
//saving data
String xString = measurements.listToString(measurements.xData, "x");
String yString = measure... |
diff --git a/src/ZoneDessin.java b/src/ZoneDessin.java
index 2f33b0c..bf95f9e 100755
--- a/src/ZoneDessin.java
+++ b/src/ZoneDessin.java
@@ -1,354 +1,354 @@
import java.awt.BasicStroke;
import java.awt.Color;
import java.awt.Dimension;
import java.awt.Graphics;
import java.awt.Graphics2D;
import java.awt.Image;
... | true | true | public void paintComponent(Graphics gd){
Graphics2D g = (Graphics2D)gd;
//Calcul de l'ecart de la zone de dessin pour centrer le dessin
ecartHorizontal = (this.getWidth() - largeurDessin)/2;
ecartVertical = (this.getHeight() - hauteurDessin)/2;
//ETAPE 1 : Afficher la zone de dessin
g.setColor... | public void paintComponent(Graphics gd){
Graphics2D g = (Graphics2D)gd;
//Calcul de l'ecart de la zone de dessin pour centrer le dessin
ecartHorizontal = (this.getWidth() - largeurDessin)/2;
ecartVertical = (this.getHeight() - hauteurDessin)/2;
//ETAPE 1 : Afficher la zone de dessin
g.setColor... |
diff --git a/langtools/src/share/classes/com/sun/tools/javac/main/RecognizedOptions.java b/langtools/src/share/classes/com/sun/tools/javac/main/RecognizedOptions.java
index 9091b8ad0..dd63df877 100644
--- a/langtools/src/share/classes/com/sun/tools/javac/main/RecognizedOptions.java
+++ b/langtools/src/share/classes/com... | true | true | public static Option[] getAll(final OptionHelper helper) {
return new Option[] {
new Option(G, "opt.g"),
new Option(G_NONE, "opt.g.none") {
@Override
public boolean process(Options options,... | public static Option[] getAll(final OptionHelper helper) {
return new Option[] {
new Option(G, "opt.g"),
new Option(G_NONE, "opt.g.none") {
@Override
public boolean process(Options options,... |
diff --git a/contrib/wikipedia/src/de/zib/scalaris/examples/wikipedia/ScalarisDataHandlerUnnormalised.java b/contrib/wikipedia/src/de/zib/scalaris/examples/wikipedia/ScalarisDataHandlerUnnormalised.java
index 99e34fa3..2d4dd21e 100644
--- a/contrib/wikipedia/src/de/zib/scalaris/examples/wikipedia/ScalarisDataHandlerUnn... | false | true | public static SavePageResult savePage(final Connection connection, final String title0,
final Revision newRev, final int prevRevId, final Map<String, String> restrictions,
final SiteInfo siteinfo, final String username, final MyNamespace nsObject) {
long timeAtStart = System.currentT... | public static SavePageResult savePage(final Connection connection, final String title0,
final Revision newRev, final int prevRevId, final Map<String, String> restrictions,
final SiteInfo siteinfo, final String username, final MyNamespace nsObject) {
long timeAtStart = System.currentT... |
diff --git a/src/main/java/com/appwish/web/IdeaController.java b/src/main/java/com/appwish/web/IdeaController.java
index 88af6fa..d4457af 100644
--- a/src/main/java/com/appwish/web/IdeaController.java
+++ b/src/main/java/com/appwish/web/IdeaController.java
@@ -1,69 +1,70 @@
package com.appwish.web;
import com.appwish... | true | true | public void createMockups(){
UserAccount user1 = new UserAccount();
user1.setName("user1");
user1.setEmail("user1@test.com");
user1.setCurrentDate();
Comment comment = new Comment();
comment.setBody("long ass first comment");
comment.setUserAccount(user1);
comment.setCurrentD... | public void createMockups(){
UserAccount user1 = new UserAccount();
user1.setName("user1");
user1.setEmail("user1@test.com");
user1.setCurrentDate();
Comment comment = new Comment();
comment.setBody("long ass first comment");
comment.setUserAccount(user1);
comment.setCurrentD... |
diff --git a/src/main/java/service/Simple.java b/src/main/java/service/Simple.java
index f356570..b879fc9 100644
--- a/src/main/java/service/Simple.java
+++ b/src/main/java/service/Simple.java
@@ -1,59 +1,59 @@
package service;
import java.io.StringWriter;
import java.util.ArrayList;
import java.util.Collection;
... | true | true | public String getJsoned() throws Exception{
// NOTE: this generates slighty different JSON ..
A myInstance = a;
StringWriter writer = new StringWriter();
JSONConfiguration config = JSONConfiguration.natural().build();
Class[] types = {A.class, B.class};
JSONJAXBContext context... | public String getJsoned() throws Exception{
// NOTE: this generates slighty different JSON ..
A myInstance = a;
StringWriter writer = new StringWriter();
JSONConfiguration config = JSONConfiguration.natural().build();
Class<?>[] types = {A.class, B.class};
JSONJAXBContext cont... |
diff --git a/java/modules/core/src/main/java/org/apache/synapse/core/axis2/ProxyServiceMessageReceiver.java b/java/modules/core/src/main/java/org/apache/synapse/core/axis2/ProxyServiceMessageReceiver.java
index 8fafcdc11..3ca76a998 100644
--- a/java/modules/core/src/main/java/org/apache/synapse/core/axis2/ProxyServiceM... | false | true | public void receive(org.apache.axis2.context.MessageContext mc) throws AxisFault {
boolean traceOn = proxy.getTraceState() == SynapseConstants.TRACING_ON;
boolean traceOrDebugOn = traceOn || log.isDebugEnabled();
String remoteAddr = (String) mc.getProperty(
org.apache.axis2.con... | public void receive(org.apache.axis2.context.MessageContext mc) throws AxisFault {
boolean traceOn = proxy.getTraceState() == SynapseConstants.TRACING_ON;
boolean traceOrDebugOn = traceOn || log.isDebugEnabled();
String remoteAddr = (String) mc.getProperty(
org.apache.axis2.con... |
diff --git a/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasks/ui/editors/TaskEditorActionContributor.java b/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasks/ui/editors/TaskEditorActionContributor.java
index fdb4cc47b..c49d87028 100644
--- a/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/... | false | true | public void contextMenuAboutToShow(IMenuManager manager, boolean addClipboard) {
if (editor != null)
updateSelectableActions(editor.getSelection());
if (addClipboard) {
addClipboardActions(manager);
}
if (editor.getTaskEditorInput() == null && !(editor.getEditorInput() instanceof NewTaskEditorInput)) {
... | public void contextMenuAboutToShow(IMenuManager manager, boolean addClipboard) {
if (editor != null)
updateSelectableActions(editor.getSelection());
if (addClipboard) {
addClipboardActions(manager);
}
if (editor.getTaskEditorInput() == null && !(editor.getEditorInput() instanceof NewTaskEditorInput)) {
... |
diff --git a/src/com/android/music/MediaPlaybackService.java b/src/com/android/music/MediaPlaybackService.java
index 995a050..f44d5f3 100644
--- a/src/com/android/music/MediaPlaybackService.java
+++ b/src/com/android/music/MediaPlaybackService.java
@@ -1,1853 +1,1853 @@
/*
* Copyright (C) 2007 The Android Open Sourc... | true | true | private void reloadQueue() {
String q = null;
boolean newstyle = false;
int id = mCardId;
if (mPreferences.contains("cardid")) {
newstyle = true;
id = mPreferences.getInt("cardid", ~mCardId);
}
if (id == mCardId) {
// Only ... | private void reloadQueue() {
String q = null;
boolean newstyle = false;
int id = mCardId;
if (mPreferences.contains("cardid")) {
newstyle = true;
id = mPreferences.getInt("cardid", ~mCardId);
}
if (id == mCardId) {
// Only ... |
diff --git a/src/org/jacorb/orb/iiop/ClientIIOPConnection.java b/src/org/jacorb/orb/iiop/ClientIIOPConnection.java
index f45a1594d..750f90bf2 100644
--- a/src/org/jacorb/orb/iiop/ClientIIOPConnection.java
+++ b/src/org/jacorb/orb/iiop/ClientIIOPConnection.java
@@ -1,461 +1,453 @@
/*
* JacORB - a free Java ORB... | false | true | private void checkSSL()
{
CompoundSecMechList sas
= (CompoundSecMechList)target_profile.getComponent
(TAG_CSI_SEC_MECH_LIST.value,
CompoundSecMechListHelper.class);
TLS_SEC_TRANS tls = null;
... | private void checkSSL()
{
CompoundSecMechList sas
= (CompoundSecMechList)target_profile.getComponent
(TAG_CSI_SEC_MECH_LIST.value,
CompoundSecMechListHelper.class);
TLS_SEC_TRANS tls = null;
... |
diff --git a/src/org/openstreetmap/josm/tools/WikiReader.java b/src/org/openstreetmap/josm/tools/WikiReader.java
index 1c57d7c2..8a20457a 100644
--- a/src/org/openstreetmap/josm/tools/WikiReader.java
+++ b/src/org/openstreetmap/josm/tools/WikiReader.java
@@ -1,75 +1,77 @@
// License: GPL. Copyright 2007 by Immanuel Sc... | true | true | private String readFromTrac(BufferedReader in, String url) throws IOException {
boolean inside = false;
StringBuilder b = new StringBuilder("<html>");
for (String line = in.readLine(); line != null; line = in.readLine()) {
if (line.contains("<div id=\"searchable\">"))
... | private String readFromTrac(BufferedReader in, String url) throws IOException {
boolean inside = false;
StringBuilder b = new StringBuilder("<html>");
for (String line = in.readLine(); line != null; line = in.readLine()) {
if (line.contains("<div id=\"searchable\">"))
... |
diff --git a/java/src/com/android/inputmethod/latin/LatinIME.java b/java/src/com/android/inputmethod/latin/LatinIME.java
index 375529f2..abe6bdd0 100644
--- a/java/src/com/android/inputmethod/latin/LatinIME.java
+++ b/java/src/com/android/inputmethod/latin/LatinIME.java
@@ -1,2243 +1,2244 @@
/*
* Copyright (C) 2008 ... | false | true | public void pickSuggestionManually(int index, CharSequence suggestion) {
SuggestedWords suggestions = mCandidateView.getSuggestions();
mVoiceProxy.flushAndLogAllTextModificationCounters(index, suggestion, mWordSeparators);
final boolean recorrecting = TextEntryState.isRecorrecting();
... | public void pickSuggestionManually(int index, CharSequence suggestion) {
SuggestedWords suggestions = mCandidateView.getSuggestions();
mVoiceProxy.flushAndLogAllTextModificationCounters(index, suggestion, mWordSeparators);
final boolean recorrecting = TextEntryState.isRecorrecting();
... |
diff --git a/target_explorer/plugins/org.eclipse.tcf.te.tcf.launch.ui/src/org/eclipse/tcf/te/tcf/launch/ui/editor/AbstractTcfLaunchTabContainerEditorPage.java b/target_explorer/plugins/org.eclipse.tcf.te.tcf.launch.ui/src/org/eclipse/tcf/te/tcf/launch/ui/editor/AbstractTcfLaunchTabContainerEditorPage.java
index ada7fd5... | false | true | public ILaunchConfigurationWorkingCopy getLaunchConfig(final IPeerModel peerModel) {
ILaunchConfigurationWorkingCopy wc = null;
if (peerModel != null) {
IPropertiesAccessService service = ServiceManager.getInstance().getService(peerModel, IPropertiesAccessService.class);
Assert.isNotNull(service);
if (ser... | public ILaunchConfigurationWorkingCopy getLaunchConfig(final IPeerModel peerModel) {
ILaunchConfigurationWorkingCopy wc = null;
if (peerModel != null) {
IPropertiesAccessService service = ServiceManager.getInstance().getService(peerModel, IPropertiesAccessService.class);
Assert.isNotNull(service);
if (ser... |
diff --git a/plugins-dev/echosounder/pt/lsts/neptus/plugins/echosounder/EchoSounderMRARuler.java b/plugins-dev/echosounder/pt/lsts/neptus/plugins/echosounder/EchoSounderMRARuler.java
index b9bad90b0..6bb394649 100644
--- a/plugins-dev/echosounder/pt/lsts/neptus/plugins/echosounder/EchoSounderMRARuler.java
+++ b/plugins... | false | true | protected void paintComponent(Graphics g) {
Graphics2D g2d = (Graphics2D) g;
rulerHeight = echoSounderMRA.getHeight() - 1;
Rectangle drawRulerHere = new Rectangle(0, 0, RULER_WIDTH, rulerHeight);
g2d.setColor(Color.LIGHT_GRAY);
g2d.fill(drawRulerHere);
// Do the ru... | protected void paintComponent(Graphics g) {
Graphics2D g2d = (Graphics2D) g;
rulerHeight = echoSounderMRA.getHeight() - 1;
Rectangle drawRulerHere = new Rectangle(0, 0, RULER_WIDTH, rulerHeight);
g2d.setColor(Color.LIGHT_GRAY);
g2d.fill(drawRulerHere);
// Do the ru... |
diff --git a/Arena/src/game/View.java b/Arena/src/game/View.java
index ca08629..357feae 100644
--- a/Arena/src/game/View.java
+++ b/Arena/src/game/View.java
@@ -1,56 +1,56 @@
package game;
import java.awt.Dimension;
import java.awt.Image;
import javax.swing.JFrame;
import javax.swing.JPanel;
/**
* Class f... | true | true | public void reDraw(ClientGameState state){
this.setTitle("TSPArena: "+state.getMapName());
Image backBuffer = createImage(640, 480);
state.draw(backBuffer.getGraphics());
//test current dimensions
backBuffer.getGraphics().drawString(""+this.getContentPane().getWidth(), 20, 100);
backBuffer.getGraphics().dr... | public void reDraw(ClientGameState state){
this.setTitle("TSPArena: "+state.getMapName());
Image backBuffer = createImage(640, 480);
state.draw(backBuffer.getGraphics());
//illustrate how wrong the current dimensions are
backBuffer.getGraphics().drawString(""+(this.getContentPane().getWidth()-640), 20, 100);... |
diff --git a/src/java/org/jivesoftware/spark/ui/conferences/DataFormDialog.java b/src/java/org/jivesoftware/spark/ui/conferences/DataFormDialog.java
index 040bcc8d..35333f3f 100644
--- a/src/java/org/jivesoftware/spark/ui/conferences/DataFormDialog.java
+++ b/src/java/org/jivesoftware/spark/ui/conferences/DataFormDialo... | true | true | public DataFormDialog(JFrame parent, final MultiUserChat chat, final Form submitForm) {
dialog = new JDialog(parent, true);
dialog.setTitle(Res.getString("title.configure.chat.room"));
this.setLayout(new GridBagLayout());
Form form = null;
// Create the room
try {
... | public DataFormDialog(JFrame parent, final MultiUserChat chat, final Form submitForm) {
dialog = new JDialog(parent, true);
dialog.setTitle(Res.getString("title.configure.chat.room"));
this.setLayout(new GridBagLayout());
Form form = null;
// Create the room
try {
... |
diff --git a/src/GUI/NewOperations.java b/src/GUI/NewOperations.java
index 3a5d41c..0c7b78d 100644
--- a/src/GUI/NewOperations.java
+++ b/src/GUI/NewOperations.java
@@ -1,1004 +1,1005 @@
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package GUI;
import stati... | false | true | private void initComponents() {
jSplitPane1 = new javax.swing.JSplitPane();
jPanel1 = new javax.swing.JPanel();
orderFormat = new javax.swing.JTextField();
orderFormatInsert = new javax.swing.JButton();
orderFormatInfo = new javax.swing.JButton();
jSeparator1 = new j... | private void initComponents() {
jSplitPane1 = new javax.swing.JSplitPane();
jPanel1 = new javax.swing.JPanel();
orderFormat = new javax.swing.JTextField();
orderFormatInsert = new javax.swing.JButton();
orderFormatInfo = new javax.swing.JButton();
jSeparator1 = new j... |
diff --git a/src/net/sf/freecol/client/gui/option/RangeOptionUI.java b/src/net/sf/freecol/client/gui/option/RangeOptionUI.java
index 4fdfa2a8d..3c8ab7cd0 100644
--- a/src/net/sf/freecol/client/gui/option/RangeOptionUI.java
+++ b/src/net/sf/freecol/client/gui/option/RangeOptionUI.java
@@ -1,155 +1,156 @@
/**
* Copyr... | true | true | public RangeOptionUI(final RangeOption option, boolean editable) {
setBorder(BorderFactory.createTitledBorder(BorderFactory.createLineBorder(Color.BLACK),
option.getName()));
this.option = option;
String name = option.getName();
S... | public RangeOptionUI(final RangeOption option, boolean editable) {
setBorder(BorderFactory.createTitledBorder(BorderFactory.createLineBorder(Color.BLACK),
option.getName()));
this.option = option;
this.originalValue = option.getValue();
... |
diff --git a/src/ribbonserver/RibbonProtocol.java b/src/ribbonserver/RibbonProtocol.java
index af1920e..46797b2 100644
--- a/src/ribbonserver/RibbonProtocol.java
+++ b/src/ribbonserver/RibbonProtocol.java
@@ -1,770 +1,770 @@
/**
* This file is part of RibbonServer application (check README).
* Copyright (C) 2012-2... | true | true | private void InitProtocol() {
/** CONNECTION CONTROL COMMANDS [LEVEL_0 SUPPORT] **/
/**
* RIBBON_NCTL_INIT: commandlet
* Client and others application send this command to register
* this connection.
*/
this.RIBBON_COMMANDS.add(new Comman... | private void InitProtocol() {
/** CONNECTION CONTROL COMMANDS [LEVEL_0 SUPPORT] **/
/**
* RIBBON_NCTL_INIT: commandlet
* Client and others application send this command to register
* this connection.
*/
this.RIBBON_COMMANDS.add(new Comman... |
diff --git a/dspace-xmlui/dspace-xmlui-api/src/main/java/org/dspace/app/xmlui/aspect/administrative/mapper/SearchItemForm.java b/dspace-xmlui/dspace-xmlui-api/src/main/java/org/dspace/app/xmlui/aspect/administrative/mapper/SearchItemForm.java
index fc63f0e6d..869aeb0e9 100644
--- a/dspace-xmlui/dspace-xmlui-api/src/mai... | false | true | public void addBody(Body body) throws SAXException, WingException, SQLException, IOException
{
// Get our parameters and state;
int collectionID = parameters.getParameterAsInteger("collectionID",-1);
Collection collection = Collection.find(context,collectionID);
String query = decodeFromURL(parameters.get... | public void addBody(Body body) throws SAXException, WingException, SQLException, IOException
{
// Get our parameters and state;
int collectionID = parameters.getParameterAsInteger("collectionID",-1);
Collection collection = Collection.find(context,collectionID);
String query = decodeFromURL(parameters.get... |
diff --git a/src/main/java/eu/trentorise/smartcampus/ac/provider/services/AcProviderServiceImpl.java b/src/main/java/eu/trentorise/smartcampus/ac/provider/services/AcProviderServiceImpl.java
index 93051ad..654a779 100644
--- a/src/main/java/eu/trentorise/smartcampus/ac/provider/services/AcProviderServiceImpl.java
+++ b... | true | true | public void updateUser(long userId, String authToken, Long expTime,
List<Attribute> attributes) throws AcServiceException {
User user = dao.readUser(userId);
if (user == null) {
throw new IllegalArgumentException(
"The user with that ID doesn't exist");
}
if (authToken != null) {
if (expTime == n... | public void updateUser(long userId, String authToken, Long expTime,
List<Attribute> attributes) throws AcServiceException {
User user = dao.readUser(userId);
if (user == null) {
throw new IllegalArgumentException(
"The user with that ID doesn't exist");
}
if (authToken != null) {
if (expTime == n... |
diff --git a/src/com/itmill/toolkit/terminal/gwt/client/Caption.java b/src/com/itmill/toolkit/terminal/gwt/client/Caption.java
index 8cd81ae88..f5ba082f7 100644
--- a/src/com/itmill/toolkit/terminal/gwt/client/Caption.java
+++ b/src/com/itmill/toolkit/terminal/gwt/client/Caption.java
@@ -1,151 +1,155 @@
/*
@ITMillAp... | false | true | public void updateCaption(UIDL uidl) {
setVisible(!uidl.getBooleanAttribute("invisible"));
setStyleName(getElement(), "i-disabled", uidl.hasAttribute("disabled"));
if (uidl.hasAttribute("error")) {
final UIDL errorUidl = uidl.getErrors();
if (errorIndicatorElement ... | public void updateCaption(UIDL uidl) {
setVisible(!uidl.getBooleanAttribute("invisible"));
setStyleName(getElement(), "i-disabled", uidl.hasAttribute("disabled"));
if (uidl.hasAttribute("error")) {
final UIDL errorUidl = uidl.getErrors();
if (errorIndicatorElement ... |
diff --git a/Freerider/src/no/ntnu/idi/socialhitchhiking/map/MapActivityAddPickupAndDropoff.java b/Freerider/src/no/ntnu/idi/socialhitchhiking/map/MapActivityAddPickupAndDropoff.java
index f8562dc..b522523 100644
--- a/Freerider/src/no/ntnu/idi/socialhitchhiking/map/MapActivityAddPickupAndDropoff.java
+++ b/Freerider/s... | true | true | protected void onCreate(Bundle icicle) {
super.onCreate(icicle);
// Getting the selected journey
Journey journey = getApp().getSelectedJourney();
// Setting up tabs
TabHost tabs = (TabHost)findViewById(R.id.tabhost);
tabs.setup();
// Adding Ride tab
TabHost.TabSpec specRide = tabs.newTabSpec("... | protected void onCreate(Bundle icicle) {
super.onCreate(icicle);
// Getting the selected journey
Journey journey = getApp().getSelectedJourney();
// Setting up tabs
TabHost tabs = (TabHost)findViewById(R.id.tabhost);
tabs.setup();
// Adding Ride tab
TabHost.TabSpec specRide = tabs.newTabSpec("... |
diff --git a/src/main/java/com/alta189/simplesave/internal/SerializedClassBuilder.java b/src/main/java/com/alta189/simplesave/internal/SerializedClassBuilder.java
index 600772a..76a2f80 100644
--- a/src/main/java/com/alta189/simplesave/internal/SerializedClassBuilder.java
+++ b/src/main/java/com/alta189/simplesave/inte... | true | true | public static boolean validClass(Class<?> clazz) {
try {
Method serialize = clazz.getDeclaredMethod("serialize");
if (!serialize.getReturnType().equals(String.class)) {
System.out.println("Class '" + clazz.getCanonicalName() + "' is not serializable because it does not return a String");
return false;
... | public static boolean validClass(Class<?> clazz) {
try {
Method serialize = clazz.getDeclaredMethod("serialize");
if (!serialize.getReturnType().equals(String.class)) {
System.out.println("Class '" + clazz.getCanonicalName() + "' is not serializable because it does not return a String");
return false;
... |
diff --git a/sandbox-providers/softlayer/src/test/java/org/jclouds/softlayer/compute/SoftLayerComputeServiceAdapterLiveTest.java b/sandbox-providers/softlayer/src/test/java/org/jclouds/softlayer/compute/SoftLayerComputeServiceAdapterLiveTest.java
index 04f4382d1d..afb9de6ac6 100644
--- a/sandbox-providers/softlayer/src... | true | true | public void testCreateNodeWithGroupEncodedIntoNameThenStoreCredentials() {
String group = "foo";
String name = "node"+new Random().nextInt();
Template template = computeContext.getComputeService().templateBuilder()
.locationId("3") // the default (singapore) doesn't work.
.b... | public void testCreateNodeWithGroupEncodedIntoNameThenStoreCredentials() {
String group = "foo";
String name = "node"+new Random().nextInt();
Template template = computeContext.getComputeService().templateBuilder().build();
// test passing custom options
template.getOptions().as(... |
diff --git a/org/mailster/message/SmtpHeaders.java b/org/mailster/message/SmtpHeaders.java
index e2318f4..589fcab 100644
--- a/org/mailster/message/SmtpHeaders.java
+++ b/org/mailster/message/SmtpHeaders.java
@@ -1,258 +1,258 @@
package org.mailster.message;
import java.io.Serializable;
import java.util.ArrayList;... | true | true | public void addHeaderLine(String line)
{
if (line != null && !"".equals(line))
{
int pos = line.indexOf(": ");
int termPos = line.indexOf(' ');
if (pos > 0 && (termPos == -1 || pos < termPos))
{
line = line.trim();
Str... | public void addHeaderLine(String line)
{
if (line != null && !"".equals(line))
{
int pos = line.indexOf(": ");
int termPos = line.indexOf(' ');
if (pos > 0 && (termPos == -1 || pos < termPos))
{
line = line.trim();
Str... |
diff --git a/soapui/src/main/java/com/eviware/soapui/impl/wsdl/teststeps/assertions/basic/XPathContainsAssertion.java b/soapui/src/main/java/com/eviware/soapui/impl/wsdl/teststeps/assertions/basic/XPathContainsAssertion.java
index d0a56ba7d..d25a1d759 100644
--- a/soapui/src/main/java/com/eviware/soapui/impl/wsdl/tests... | true | true | public String assertContent( String response, SubmitContext context, String type ) throws AssertionException
{
try
{
if( path == null )
return "Missing path for XPath assertion";
if( expectedContent == null )
return "Missing content for XPath assertion";
XmlOptions options = new XmlOptions();
... | public String assertContent( String response, SubmitContext context, String type ) throws AssertionException
{
try
{
if( path == null )
return "Missing path for XPath assertion";
if( expectedContent == null )
return "Missing content for XPath assertion";
XmlOptions options = new XmlOptions();
... |
diff --git a/trunk/src/java/org/apache/commons/dbcp2/managed/ManagedDataSource.java b/trunk/src/java/org/apache/commons/dbcp2/managed/ManagedDataSource.java
index f50bd11..0b38ad8 100644
--- a/trunk/src/java/org/apache/commons/dbcp2/managed/ManagedDataSource.java
+++ b/trunk/src/java/org/apache/commons/dbcp2/managed/Ma... | true | true | public Connection getConnection() throws SQLException {
if (_pool == null) throw new IllegalStateException("Pool has not been set");
if (transactionRegistry == null) throw new IllegalStateException("TransactionRegistry has not been set");
Connection connection = new ManagedConnection(_pool,... | public Connection getConnection() throws SQLException {
if (_pool == null) throw new IllegalStateException("Pool has not been set");
if (transactionRegistry == null) throw new IllegalStateException("TransactionRegistry has not been set");
Connection connection = new ManagedConnection<>(_poo... |
diff --git a/opal-gwt-client/src/main/java/org/obiba/opal/web/gwt/app/client/fs/presenter/CreateFolderDialogPresenter.java b/opal-gwt-client/src/main/java/org/obiba/opal/web/gwt/app/client/fs/presenter/CreateFolderDialogPresenter.java
index 23f45a8a6..8cf8d0d61 100644
--- a/opal-gwt-client/src/main/java/org/obiba/opal/... | true | true | private void addEventHandlers() {
super.registerHandler(getDisplay().getCreateFolderButton().addClickHandler(new ClickHandler() {
public void onClick(ClickEvent event) {
String folderToCreate = getDisplay().getFolderToCreate().getText();
if(folderToCreate.equals("")) {
getDisplay()... | private void addEventHandlers() {
super.registerHandler(getDisplay().getCreateFolderButton().addClickHandler(new ClickHandler() {
public void onClick(ClickEvent event) {
String folderToCreate = getDisplay().getFolderToCreate().getText();
if(folderToCreate.equals("")) {
getDisplay()... |
diff --git a/src/main/java/ditl/StatefulReader.java b/src/main/java/ditl/StatefulReader.java
index 1284cf2..44caea8 100644
--- a/src/main/java/ditl/StatefulReader.java
+++ b/src/main/java/ditl/StatefulReader.java
@@ -1,82 +1,82 @@
/*******************************************************************************
* Thi... | true | true | public void seek(long time) throws IOException {
if (seek_map.getOffset(time + _offset) == Long.MIN_VALUE) {
throw new IOException("Cannot seek before initial state");
}
fastSeek(time + _offset);
// we always hit a state item block after this step
_updater.setStat... | public void seek(long time) throws IOException {
if (seek_map.getOffset(time + _offset) == Long.MIN_VALUE) {
throw new IOException("Cannot seek before initial state");
}
fastSeek(time + _offset);
// we always hit a state item block after this step
_updater.setStat... |
diff --git a/src/main/java/com/pahimar/ee3/handler/FuelHandler.java b/src/main/java/com/pahimar/ee3/handler/FuelHandler.java
index 10d6c306..a91a1071 100644
--- a/src/main/java/com/pahimar/ee3/handler/FuelHandler.java
+++ b/src/main/java/com/pahimar/ee3/handler/FuelHandler.java
@@ -1,59 +1,59 @@
package com.pahimar.ee... | false | true | public int getBurnTime(ItemStack fuel)
{
/**
* Alchemical Coal
*/
if (fuel.itemID == ALCHEMICAL_COAL_STACK.itemID && fuel.getItemDamage() == ALCHEMICAL_COAL_STACK.getItemDamage())
{
return 8 * TileEntityFurnace.getItemBurnTime(new ItemStack(Item.coal));
... | public int getBurnTime(ItemStack fuel)
{
/**
* Alchemical Coal
*/
if (fuel.itemID == ALCHEMICAL_COAL_STACK.itemID && fuel.getItemDamage() == ALCHEMICAL_COAL_STACK.getItemDamage())
{
return 8 * TileEntityFurnace.getItemBurnTime(new ItemStack(Item.coal));
... |
diff --git a/dspace/src/org/dspace/app/webui/jsptag/ItemListTag.java b/dspace/src/org/dspace/app/webui/jsptag/ItemListTag.java
index 5c954a64d..f9584e5d8 100644
--- a/dspace/src/org/dspace/app/webui/jsptag/ItemListTag.java
+++ b/dspace/src/org/dspace/app/webui/jsptag/ItemListTag.java
@@ -1,301 +1,303 @@
/*
* ItemLis... | true | true | public int doStartTag()
throws JspException
{
JspWriter out = pageContext.getOut();
boolean emphasiseDate = false;
boolean emphasiseTitle = false;
if (emphColumn != null)
{
emphasiseDate = emphColumn.equalsIgnoreCase("date");
... | public int doStartTag()
throws JspException
{
JspWriter out = pageContext.getOut();
boolean emphasiseDate = false;
boolean emphasiseTitle = false;
if (emphColumn != null)
{
emphasiseDate = emphColumn.equalsIgnoreCase("date");
... |
diff --git a/org.eclipse.mylyn.reviews.r4e.ui/src/org/eclipse/mylyn/reviews/r4e/ui/internal/utils/EditableListWidget.java b/org.eclipse.mylyn.reviews.r4e.ui/src/org/eclipse/mylyn/reviews/r4e/ui/internal/utils/EditableListWidget.java
index d3b2c98..faa0c67 100644
--- a/org.eclipse.mylyn.reviews.r4e.ui/src/org/eclipse/my... | false | true | public void createEditableListFromTable(FormToolkit aToolkit, final Class<?> aEditableWidgetClass) {
final Composite tableComposite = (null != aToolkit) ? aToolkit.createComposite(fMainComposite) : new Composite(
fMainComposite, SWT.NONE);
fMainTable = (null != aToolkit)
? aToolkit.createTable(tableCompos... | public void createEditableListFromTable(FormToolkit aToolkit, final Class<?> aEditableWidgetClass) {
final Composite tableComposite = (null != aToolkit) ? aToolkit.createComposite(fMainComposite) : new Composite(
fMainComposite, SWT.NONE);
fMainTable = (null != aToolkit)
? aToolkit.createTable(tableCompos... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.