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/schedulemanager/src/main/java/cours/ulaval/glo4003/controller/model/SectionModel.java b/schedulemanager/src/main/java/cours/ulaval/glo4003/controller/model/SectionModel.java
index 2bde46a..fe72cd3 100644
--- a/schedulemanager/src/main/java/cours/ulaval/glo4003/controller/model/SectionModel.java
+++ b/sched... | false | true | public SectionModel(Section section) {
initialize();
this.nrc = section.getNrc();
this.group = section.getGroup();
this.personInCharge = section.getPersonInCharge();
this.teachers = section.getTeachers();
this.teachMode = section.getTeachMode().toString();
this.acronym = section.getCourseAcronym();
Ti... | public SectionModel(Section section) {
initialize();
this.nrc = section.getNrc();
this.group = section.getGroup();
this.personInCharge = section.getPersonInCharge();
this.teachers = section.getTeachers();
this.teachMode = section.getTeachMode().toString();
this.acronym = section.getCourseAcronym();
Ti... |
diff --git a/src/sphinx4/edu/cmu/sphinx/frontend/util/FrontEndUtils.java b/src/sphinx4/edu/cmu/sphinx/frontend/util/FrontEndUtils.java
index b5179a8a..ee8e7b22 100644
--- a/src/sphinx4/edu/cmu/sphinx/frontend/util/FrontEndUtils.java
+++ b/src/sphinx4/edu/cmu/sphinx/frontend/util/FrontEndUtils.java
@@ -1,88 +1,90 @@
pa... | true | true | public static float getWindowShiftMs(DataProcessor dataProc) {
DataProcessor dp = dataProc;
while (!(dp instanceof RaisedCosineWindower)) {
dp = dp.getPredecessor();
if (dp == null) {
break;
}
if (dp instanceof FrontEnd) {
... | public static float getWindowShiftMs(DataProcessor dataProc) {
DataProcessor dp = dataProc;
while (!(dp instanceof RaisedCosineWindower)) {
dp = dp.getPredecessor();
if (dp == null) {
break;
}
if (dp instanceof FrontEnd) {
... |
diff --git a/src/webctdbexport/jdbc/DumpUsers.java b/src/webctdbexport/jdbc/DumpUsers.java
index 40ebeec..77a1320 100755
--- a/src/webctdbexport/jdbc/DumpUsers.java
+++ b/src/webctdbexport/jdbc/DumpUsers.java
@@ -1,172 +1,172 @@
/**
*
*/
package webctdbexport.jdbc;
import java.io.BufferedReader;
import java.... | false | true | public static void main(String[] args) {
if (args.length<4) {
System.err.println("Usage: <jdbc.properties> <outputdir> <filedir> <extrapermissionsfile> [usernames...]");
System.err.println("Extra permissions file format: <username> lc<learningcontextid> ...");
System.exit(-1);
}
File outputdir = new Fil... | public static void main(String[] args) {
if (args.length<4) {
System.err.println("Usage: <jdbc.properties> <outputdir> <filedir> <extrapermissionsfile> [usernames...]");
System.err.println("Extra permissions file format: <username> lc<learningcontextid> ...");
System.exit(-1);
}
File outputdir = new Fil... |
diff --git a/org.eclipse.mylyn.context.ui/src/org/eclipse/mylyn/internal/context/ui/TaskListInterestFilter.java b/org.eclipse.mylyn.context.ui/src/org/eclipse/mylyn/internal/context/ui/TaskListInterestFilter.java
index c94cea817..1b8427629 100644
--- a/org.eclipse.mylyn.context.ui/src/org/eclipse/mylyn/internal/context... | false | true | public boolean select(Object parent, Object child) {
try {
if (child instanceof ScheduledTaskContainer) {
ScheduledTaskContainer dateRangeTaskContainer = (ScheduledTaskContainer) child;
return isDateRangeInteresting(dateRangeTaskContainer);
}
if (child instanceof AbstractTask) {
AbstractTask ta... | public boolean select(Object parent, Object child) {
try {
if (child instanceof ScheduledTaskContainer) {
ScheduledTaskContainer dateRangeTaskContainer = (ScheduledTaskContainer) child;
return isDateRangeInteresting(dateRangeTaskContainer);
}
if (child instanceof AbstractTask) {
AbstractTask ta... |
diff --git a/src/test/java/org/jembi/openhim/DefaultChannelComponentTest.java b/src/test/java/org/jembi/openhim/DefaultChannelComponentTest.java
index 95d6515..e8f2027 100644
--- a/src/test/java/org/jembi/openhim/DefaultChannelComponentTest.java
+++ b/src/test/java/org/jembi/openhim/DefaultChannelComponentTest.java
@@ ... | true | true | public void test_readMappings() throws JsonParseException, JsonMappingException, IOException {
DefaultChannelComponent dcc = new DefaultChannelComponent();
dcc.readMappings();
assertNotNull(DefaultChannelComponent.mappings);
assertEquals(5, DefaultChannelComponent.mappings.size());
URLMapping mapping1 ... | public void test_readMappings() throws JsonParseException, JsonMappingException, IOException {
DefaultChannelComponent dcc = new DefaultChannelComponent();
dcc.readMappings();
assertNotNull(DefaultChannelComponent.mappings);
URLMapping mapping1 = new URLMapping();
mapping1.setHost("localhost");
mappi... |
diff --git a/search/src/java/cz/incad/Kramerius/ViewInfoServlet.java b/search/src/java/cz/incad/Kramerius/ViewInfoServlet.java
index 8936eb847..70d587870 100644
--- a/search/src/java/cz/incad/Kramerius/ViewInfoServlet.java
+++ b/search/src/java/cz/incad/Kramerius/ViewInfoServlet.java
@@ -1,238 +1,239 @@
package cz.inc... | false | true | protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {
try {
String uuid = req.getParameter(UUID_PARAMETER);
String[] pathOfUUIDs = this.solrAccess.getPathOfUUIDs(uuid);
User user = currentLoggedUserProvi... | protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {
try {
String uuid = req.getParameter(UUID_PARAMETER);
String[] pathOfUUIDs = this.solrAccess.getPathOfUUIDs(uuid);
User user = currentLoggedUserProvi... |
diff --git a/user/src/com/google/gwt/user/rebind/ImageBundleGenerator.java b/user/src/com/google/gwt/user/rebind/ImageBundleGenerator.java
index 8bf0f649f..3b86dc0f0 100644
--- a/user/src/com/google/gwt/user/rebind/ImageBundleGenerator.java
+++ b/user/src/com/google/gwt/user/rebind/ImageBundleGenerator.java
@@ -1,343 +... | true | true | private String getImageUrlFromMetaDataOrMethodName(TreeLogger logger,
JMethod method)
throws UnableToCompleteException {
String[][] md = method.getMetaData(METADATA_TAG);
if (md.length == 1) {
// Metadata is available, so get the image url fro... | private String getImageUrlFromMetaDataOrMethodName(TreeLogger logger,
JMethod method)
throws UnableToCompleteException {
String[][] md = method.getMetaData(METADATA_TAG);
if (md.length == 1) {
// Metadata is available, so get the image url fro... |
diff --git a/httpcache4j-api/src/test/java/org/codehaus/httpcache4j/HeadersTest.java b/httpcache4j-api/src/test/java/org/codehaus/httpcache4j/HeadersTest.java
index c22c436..e9c693b 100644
--- a/httpcache4j-api/src/test/java/org/codehaus/httpcache4j/HeadersTest.java
+++ b/httpcache4j-api/src/test/java/org/codehaus/http... | false | true | public void testHasCacheHeaders() {
Headers headers = new Headers();
assertTrue("There was cacheable headers in an empty header map", HeaderUtils.hasCacheableHeaders(headers));
headers = headers.add(new Header(HeaderConstants.CACHE_CONTROL, "private, max-age=60"));
assertTrue("There ... | public void testHasCacheHeaders() {
Headers headers = new Headers();
assertFalse("There was cacheable headers in an empty header map", HeaderUtils.hasCacheableHeaders(headers));
headers = headers.add(new Header(HeaderConstants.CACHE_CONTROL, "private, max-age=60"));
assertFalse("Ther... |
diff --git a/activemq-core/src/main/java/org/apache/activemq/usage/Usage.java b/activemq-core/src/main/java/org/apache/activemq/usage/Usage.java
index e929bd44d..f006f1695 100755
--- a/activemq-core/src/main/java/org/apache/activemq/usage/Usage.java
+++ b/activemq-core/src/main/java/org/apache/activemq/usage/Usage.java... | true | true | private void fireEvent(final int oldPercentUsage, final int newPercentUsage) {
if (debug) {
LOG.debug("Memory usage change. from: " + oldPercentUsage + ", to: " + newPercentUsage);
}
if (started.get()) {
// Switching from being full to not being ful... | private void fireEvent(final int oldPercentUsage, final int newPercentUsage) {
if (debug) {
LOG.debug("Memory usage change. from: " + oldPercentUsage + ", to: " + newPercentUsage);
}
if (newPercentUsage >= 80) {
LOG.warn("Memory usage is now over 80%!");
}... |
diff --git a/illaclient/src/illarion/client/net/client/TextResponseCmd.java b/illaclient/src/illarion/client/net/client/TextResponseCmd.java
index 3465c6f2..afcd201d 100644
--- a/illaclient/src/illarion/client/net/client/TextResponseCmd.java
+++ b/illaclient/src/illarion/client/net/client/TextResponseCmd.java
@@ -1,110... | true | true | public void encode(final NetCommWriter writer) {
writer.writeUByte((short) dialogID);
writer.writeString(text);
}
| public void encode(final NetCommWriter writer) {
writer.writeUByte((short) dialogID);
writer.writeUByte((byte) 0xFF);
writer.writeString(text);
}
|
diff --git a/src/bone008/bukkit/deathcontrol/MessageHelper.java b/src/bone008/bukkit/deathcontrol/MessageHelper.java
index d11fe46..24e9204 100644
--- a/src/bone008/bukkit/deathcontrol/MessageHelper.java
+++ b/src/bone008/bukkit/deathcontrol/MessageHelper.java
@@ -1,71 +1,72 @@
package bone008.bukkit.deathcontrol;
... | true | true | public static void sendMessage(CommandSender who, Message msg, String... replaces) {
if (replaces.length % 2 > 0)
throw new IllegalArgumentException("replace patterns must consist of two elements");
String translatedMessage = msg.getTranslation();
if (translatedMessage == null || translatedMessage.isEmpty()... | public static void sendMessage(CommandSender who, Message msg, String... replaces) {
if (replaces.length % 2 > 0)
throw new IllegalArgumentException("replace patterns must consist of two elements");
String translatedMessage = msg.getTranslation();
if (translatedMessage == null || translatedMessage.isEmpty()... |
diff --git a/twitter4j-core/src/main/java/twitter4j/PlaceJSONImpl.java b/twitter4j-core/src/main/java/twitter4j/PlaceJSONImpl.java
index 949a4b88..4d9d92a3 100644
--- a/twitter4j-core/src/main/java/twitter4j/PlaceJSONImpl.java
+++ b/twitter4j-core/src/main/java/twitter4j/PlaceJSONImpl.java
@@ -1,216 +1,225 @@
/*
Copy... | true | true | private void init(JSONObject json) throws TwitterException{
try {
name = getUnescapedString("name", json);
streetAddress = getUnescapedString("street_address", json);
countryCode = getRawString("country_code", json);
id = getRawString("id", json);
... | private void init(JSONObject json) throws TwitterException{
try {
name = getUnescapedString("name", json);
streetAddress = getUnescapedString("street_address", json);
countryCode = getRawString("country_code", json);
id = getRawString("id", json);
... |
diff --git a/src/main/java/org/bukkit/conversations/InactivityConversationCanceller.java b/src/main/java/org/bukkit/conversations/InactivityConversationCanceller.java
index c1d0c9f..d8f3c68 100644
--- a/src/main/java/org/bukkit/conversations/InactivityConversationCanceller.java
+++ b/src/main/java/org/bukkit/conversati... | true | true | private void startTimer() {
taskId = plugin.getServer().getScheduler().scheduleSyncDelayedTask(plugin, new Runnable() {
public void run() {
if (conversation.getState() == Conversation.ConversationState.UNSTARTED) {
startTimer();
} else if (conv... | private void startTimer() {
taskId = plugin.getServer().getScheduler().scheduleSyncDelayedTask(plugin, new Runnable() {
public void run() {
if (conversation.getState() == Conversation.ConversationState.UNSTARTED) {
startTimer();
} else if (conv... |
diff --git a/web/src/main/java/org/openmrs/web/filter/initialization/InitializationFilter.java b/web/src/main/java/org/openmrs/web/filter/initialization/InitializationFilter.java
index c1511aa5..617aab31 100644
--- a/web/src/main/java/org/openmrs/web/filter/initialization/InitializationFilter.java
+++ b/web/src/main/ja... | false | true | protected void doPost(HttpServletRequest httpRequest, HttpServletResponse httpResponse) throws IOException,
ServletException {
String page = httpRequest.getParameter("page");
Map<String, Object> referenceMap = new HashMap<String, Object>();
// we need to save current user language in references map s... | protected void doPost(HttpServletRequest httpRequest, HttpServletResponse httpResponse) throws IOException,
ServletException {
String page = httpRequest.getParameter("page");
Map<String, Object> referenceMap = new HashMap<String, Object>();
// we need to save current user language in references map s... |
diff --git a/src/main/java/org/helix/mobile/component/formfield/FormFieldRenderer.java b/src/main/java/org/helix/mobile/component/formfield/FormFieldRenderer.java
index 944f061e..f4ebcc84 100644
--- a/src/main/java/org/helix/mobile/component/formfield/FormFieldRenderer.java
+++ b/src/main/java/org/helix/mobile/componen... | false | true | public void encodeEnd(FacesContext context, UIComponent component) throws IOException {
ResponseWriter writer = context.getResponseWriter();
FormField ffield = (FormField) component;
if (ffield.isEditOnly() && ffield.isViewOnly()) {
throw new FacesException("Cannot specify that a... | public void encodeEnd(FacesContext context, UIComponent component) throws IOException {
ResponseWriter writer = context.getResponseWriter();
FormField ffield = (FormField) component;
if (ffield.isEditOnly() && ffield.isViewOnly()) {
throw new FacesException("Cannot specify that a... |
diff --git a/src/main/java/be/Balor/bukkit/AdminCmd/AdminCmd.java b/src/main/java/be/Balor/bukkit/AdminCmd/AdminCmd.java
index b13e64a3..b3677818 100644
--- a/src/main/java/be/Balor/bukkit/AdminCmd/AdminCmd.java
+++ b/src/main/java/be/Balor/bukkit/AdminCmd/AdminCmd.java
@@ -1,564 +1,565 @@
package be.Balor.bukkit.Admi... | true | true | protected void setDefaultLocale() {
Utils.addLocale("playerNotFound", ChatColor.RED + "No such player: " + ChatColor.WHITE
+ "%player");
Utils.addLocale("kitNotFound", ChatColor.RED + "No such kit: " + ChatColor.WHITE + "%kit");
Utils.addLocale("pluginNotFound", ChatColor.RED + "No such Plugin: " + ChatColor... | protected void setDefaultLocale() {
Utils.addLocale("playerNotFound", ChatColor.RED + "No such player: " + ChatColor.WHITE
+ "%player");
Utils.addLocale("kitNotFound", ChatColor.RED + "No such kit: " + ChatColor.WHITE + "%kit");
Utils.addLocale("pluginNotFound", ChatColor.RED + "No such Plugin: " + ChatColor... |
diff --git a/src/plugin/feed/src/test/org/apache/nutch/parse/feed/TestFeedParser.java b/src/plugin/feed/src/test/org/apache/nutch/parse/feed/TestFeedParser.java
index 16d64013..08e96d11 100644
--- a/src/plugin/feed/src/test/org/apache/nutch/parse/feed/TestFeedParser.java
+++ b/src/plugin/feed/src/test/org/apache/nutch/... | true | true | public void testParseFetchChannel() throws ProtocolNotFound, ParseException {
String urlString;
Protocol protocol;
Content content;
ParseResult parseResult;
Configuration conf = NutchConfiguration.create();
for (int i = 0; i < sampleFiles.length; i++) {
urlString = "file:" + sampleDir +... | public void testParseFetchChannel() throws ProtocolNotFound, ParseException {
String urlString;
Protocol protocol;
Content content;
ParseResult parseResult;
Configuration conf = NutchConfiguration.create();
for (int i = 0; i < sampleFiles.length; i++) {
urlString = "file:" + sampleDir +... |
diff --git a/javafx.editor/src/org/netbeans/modules/javafx/editor/preview/JavaFXPreviewTopComponent.java b/javafx.editor/src/org/netbeans/modules/javafx/editor/preview/JavaFXPreviewTopComponent.java
index 2f9aabe3..63f93e47 100644
--- a/javafx.editor/src/org/netbeans/modules/javafx/editor/preview/JavaFXPreviewTopCompon... | true | true | public void run() {
synchronized (JavaFXPreviewTopComponent.this) {
if (pr != null) {
pr.destroy();
timer = 0;
task.schedule(150);
return;
}
}
if (oldD != null) {
... | public void run() {
synchronized (JavaFXPreviewTopComponent.this) {
if (pr != null) {
pr.destroy();
timer = 0;
task.schedule(150);
return;
}
}
if (oldD != null) {
... |
diff --git a/ERR2d2w/Sources/er/r2d2w/assignments/R2DDelayedNonNullConditionalAssignment.java b/ERR2d2w/Sources/er/r2d2w/assignments/R2DDelayedNonNullConditionalAssignment.java
index 45fc805..f3ee830 100644
--- a/ERR2d2w/Sources/er/r2d2w/assignments/R2DDelayedNonNullConditionalAssignment.java
+++ b/ERR2d2w/Sources/er/r... | true | true | public Object fireNow(D2WContext c) {
Object result = null;
String keyPath = NON_NULL_KEY_PATH.valueInObject(value());
boolean negate = ERXValueUtilities.booleanValue(NEGATE.valueInObject(value()));
boolean localize = ERXValueUtilities.booleanValue(LOCALIZE.valueInObject(value()));
ERXKey<String> resultKey =... | public Object fireNow(D2WContext c) {
Object result = null;
String keyPath = NON_NULL_KEY_PATH.valueInObject(value());
boolean negate = ERXValueUtilities.booleanValue(NEGATE.valueInObject(value()));
boolean localize = ERXValueUtilities.booleanValue(LOCALIZE.valueInObject(value()));
boolean isNull = ERXValueU... |
diff --git a/src/com/android/contacts/voicemail/VoicemailPlaybackPresenter.java b/src/com/android/contacts/voicemail/VoicemailPlaybackPresenter.java
index f8e497dfd..becc133f1 100644
--- a/src/com/android/contacts/voicemail/VoicemailPlaybackPresenter.java
+++ b/src/com/android/contacts/voicemail/VoicemailPlaybackPresen... | true | true | private void postSuccessfullyFetchedContent() {
mView.setIsBuffering();
mAsyncTaskExecutor.submit(Tasks.PREPARE_MEDIA_PLAYER,
new AsyncTask<Void, Void, Exception>() {
@Override
public Exception doInBackground(Void... params) {
... | private void postSuccessfullyFetchedContent() {
mView.setIsBuffering();
mAsyncTaskExecutor.submit(Tasks.PREPARE_MEDIA_PLAYER,
new AsyncTask<Void, Void, Exception>() {
@Override
public Exception doInBackground(Void... params) {
... |
diff --git a/src/minecraft/biomesoplenty/blocks/BlockBamboo.java b/src/minecraft/biomesoplenty/blocks/BlockBamboo.java
index b9f7d2ab3..419313782 100644
--- a/src/minecraft/biomesoplenty/blocks/BlockBamboo.java
+++ b/src/minecraft/biomesoplenty/blocks/BlockBamboo.java
@@ -1,160 +1,160 @@
package biomesoplenty.blocks;
... | false | true | public void updateTick(World par1World, int par2, int par3, int par4, Random par5Random)
{
if (par1World.isAirBlock(par2, par3 + 1, par4))
{
int var6;
for (var6 = 1; par1World.getBlockId(par2, par3 - var6, par4) == blockID; ++var6)
{
;
}
if (var6 < 3)
{
int var7 = par1World.getBlockMet... | public void updateTick(World par1World, int par2, int par3, int par4, Random par5Random)
{
if (par1World.isAirBlock(par2, par3 + 1, par4))
{
int var6;
for (var6 = 1; par1World.getBlockId(par2, par3 - var6, par4) == blockID; ++var6)
{
;
}
if (var6 < 3)
{
int var7 = par1World.getBlockMet... |
diff --git a/git-tests/src/jetbrains/buildServer/buildTriggers/vcs/git/tests/GitVcsSupportTest.java b/git-tests/src/jetbrains/buildServer/buildTriggers/vcs/git/tests/GitVcsSupportTest.java
index ce97404..dae4ae5 100755
--- a/git-tests/src/jetbrains/buildServer/buildTriggers/vcs/git/tests/GitVcsSupportTest.java
+++ b/gi... | false | true | public void testConcurrentCollectBuildChanges(boolean fetchInSeparateProcess) throws Throwable {
System.setProperty("teamcity.git.fetch.separate.process", String.valueOf(fetchInSeparateProcess));
final GitVcsSupport support = getSupport();
final List<Exception> errors = Collections.synchronizedList(new A... | public void testConcurrentCollectBuildChanges(boolean fetchInSeparateProcess) throws Throwable {
System.setProperty("teamcity.git.fetch.separate.process", String.valueOf(fetchInSeparateProcess));
final GitVcsSupport support = getSupport();
final List<Throwable> errors = Collections.synchronizedList(new A... |
diff --git a/src/com/koletar/jj/chestkeeper/CKUser.java b/src/com/koletar/jj/chestkeeper/CKUser.java
index ede0de5..b06164a 100644
--- a/src/com/koletar/jj/chestkeeper/CKUser.java
+++ b/src/com/koletar/jj/chestkeeper/CKUser.java
@@ -1,231 +1,235 @@
package com.koletar.jj.chestkeeper;
import org.bukkit.configuration... | true | true | public void fromVC(BufferedReader chestYml, String defaultChest) {
String currentChest = null;
boolean isLargeChest = false;
boolean areReadingItems = false;
ItemStack currentItem = null;
List<ItemStack> items = new LinkedList<ItemStack>();
try {
boolean d... | public void fromVC(BufferedReader chestYml, String defaultChest) {
String currentChest = null;
boolean isLargeChest = false;
boolean areReadingItems = false;
ItemStack currentItem = null;
List<ItemStack> items = new LinkedList<ItemStack>();
try {
boolean d... |
diff --git a/azkaban/src/java/azkaban/flow/IndividualJobExecutableFlow.java b/azkaban/src/java/azkaban/flow/IndividualJobExecutableFlow.java
index f337841..cf98ec4 100644
--- a/azkaban/src/java/azkaban/flow/IndividualJobExecutableFlow.java
+++ b/azkaban/src/java/azkaban/flow/IndividualJobExecutableFlow.java
@@ -1,472 +... | true | true | public void execute(Props parentProps, FlowCallback callback)
{
if (parentProps == null) {
parentProps = new Props();
}
synchronized (sync) {
if (this.parentProps == null) {
this.parentProps = parentProps;
}
else if... | public void execute(Props parentProps, FlowCallback callback)
{
if (parentProps == null) {
parentProps = new Props();
}
synchronized (sync) {
if (this.parentProps == null) {
this.parentProps = parentProps;
}
else if... |
diff --git a/src/no/digipost/android/gui/ReceiptListAdapter.java b/src/no/digipost/android/gui/ReceiptListAdapter.java
index c60fc2a3..67ef651b 100644
--- a/src/no/digipost/android/gui/ReceiptListAdapter.java
+++ b/src/no/digipost/android/gui/ReceiptListAdapter.java
@@ -1,127 +1,128 @@
/**
* Copyright (C) Posten Nor... | true | true | public View getView(final int position, final View convertView, final ViewGroup parent) {
LayoutInflater inflater = (LayoutInflater) con.getSystemService(Context.LAYOUT_INFLATER_SERVICE);
View row = inflater.inflate(R.layout.mailbox_list_item, parent, false);
Drawable even = con.getResources().getDrawable(R.dra... | public View getView(final int position, final View convertView, final ViewGroup parent) {
LayoutInflater inflater = (LayoutInflater) con.getSystemService(Context.LAYOUT_INFLATER_SERVICE);
View row = inflater.inflate(R.layout.mailbox_list_item, parent, false);
Drawable even = con.getResources().getDrawable(R.dra... |
diff --git a/lib/src/main/java/com/github/fhirschmann/clozegen/lib/annotators/en/PrepositionGapGenerator.java b/lib/src/main/java/com/github/fhirschmann/clozegen/lib/annotators/en/PrepositionGapGenerator.java
index 57afb86..588f06c 100644
--- a/lib/src/main/java/com/github/fhirschmann/clozegen/lib/annotators/en/Preposi... | true | true | public void processTrigram(JCas aJCas, POS[] parts) {
if (parts[1] instanceof PP) {
final String[] strings = PosUtils.loweredWordsOrNULL(parts);
final Multiset<String> candidates = ConcurrentHashMultiset.create(
MultisetUtils.mergeMultiSets(
be... | public void processTrigram(JCas aJCas, POS[] parts) {
if (parts[1] instanceof PP) {
final String[] strings = PosUtils.loweredWordsOrNULL(parts);
final Multiset<String> candidates = ConcurrentHashMultiset.create(
MultisetUtils.mergeMultiSets(
be... |
diff --git a/core/src/main/java/io/undertow/server/HttpReadListener.java b/core/src/main/java/io/undertow/server/HttpReadListener.java
index 541ee2b6a..76af2b93a 100644
--- a/core/src/main/java/io/undertow/server/HttpReadListener.java
+++ b/core/src/main/java/io/undertow/server/HttpReadListener.java
@@ -1,201 +1,201 @@... | true | true | public void handleEvent(final StreamSourceChannel channel) {
Pooled<ByteBuffer> existing = connection.getExtraBytes();
final Pooled<ByteBuffer> pooled = existing == null ? connection.getBufferPool().allocate() : existing;
final ByteBuffer buffer = pooled.getResource();
boolean free... | public void handleEvent(final StreamSourceChannel channel) {
Pooled<ByteBuffer> existing = connection.getExtraBytes();
final Pooled<ByteBuffer> pooled = existing == null ? connection.getBufferPool().allocate() : existing;
final ByteBuffer buffer = pooled.getResource();
boolean free... |
diff --git a/src/main/java/org/napile/playJava4idea/template/base/editor/PlayBaseTemplateLineMarkerProvider.java b/src/main/java/org/napile/playJava4idea/template/base/editor/PlayBaseTemplateLineMarkerProvider.java
index 21c83eb..4674efd 100644
--- a/src/main/java/org/napile/playJava4idea/template/base/editor/PlayBaseT... | true | true | protected void collectNavigationMarkers(@NotNull PsiElement element, Collection<? super RelatedItemLineMarkerInfo> result)
{
if(element instanceof PsiIdentifier && element.getParent() instanceof PsiMethod)
{
PsiMethod method = (PsiMethod) element.getParent();
final PsiClass containingClass = method.getCont... | protected void collectNavigationMarkers(@NotNull PsiElement element, Collection<? super RelatedItemLineMarkerInfo> result)
{
if(element instanceof PsiIdentifier && element.getParent() instanceof PsiMethod)
{
PsiMethod method = (PsiMethod) element.getParent();
final PsiClass containingClass = method.getCont... |
diff --git a/portal-impl/impl/src/java/org/sakaiproject/portal/charon/site/PortalSiteHelperImpl.java b/portal-impl/impl/src/java/org/sakaiproject/portal/charon/site/PortalSiteHelperImpl.java
index 7fdff3b8..504a449e 100644
--- a/portal-impl/impl/src/java/org/sakaiproject/portal/charon/site/PortalSiteHelperImpl.java
+++... | false | true | public Map pageListToMap(HttpServletRequest req, boolean loggedIn, Site site,
SitePage page, String toolContextPath, String portalPrefix, boolean doPages,
boolean resetTools, boolean includeSummary)
{
Map<String, Object> theMap = new HashMap<String, Object>();
String pageUrl = Web.returnUrl(req, "/" + por... | public Map pageListToMap(HttpServletRequest req, boolean loggedIn, Site site,
SitePage page, String toolContextPath, String portalPrefix, boolean doPages,
boolean resetTools, boolean includeSummary)
{
Map<String, Object> theMap = new HashMap<String, Object>();
String pageUrl = Web.returnUrl(req, "/" + por... |
diff --git a/rvsn00p/src/org/rvsnoop/FilteredLedgerView.java b/rvsn00p/src/org/rvsnoop/FilteredLedgerView.java
index 930a781..aa77f29 100644
--- a/rvsn00p/src/org/rvsnoop/FilteredLedgerView.java
+++ b/rvsn00p/src/org/rvsnoop/FilteredLedgerView.java
@@ -1,144 +1,144 @@
//:File: FilteredLedgerView.java
//:Legal: C... | true | true | public synchronized void setFilteringOnSubject(boolean filtering) {
if (filtering && subjectFilter != null) return;
if (!filtering && subjectFilter == null) return;
final EventList editors = filters.getMatcherEditors();
final Lock lock = editors.getReadWriteLock().writeLock();
... | public synchronized void setFilteringOnSubject(boolean filtering) {
if (filtering && subjectFilter != null) { return; }
if (!filtering && subjectFilter == null) { return; }
final EventList editors = filters.getMatcherEditors();
final Lock lock = editors.getReadWriteLock().writeLock()... |
diff --git a/src/main/java/com/concursive/connect/web/modules/plans/actions/ProjectManagementAssignments.java b/src/main/java/com/concursive/connect/web/modules/plans/actions/ProjectManagementAssignments.java
index 099bb1d..96dbbba 100644
--- a/src/main/java/com/concursive/connect/web/modules/plans/actions/ProjectManag... | false | true | public String executeCommandSave(ActionContext context) {
Connection db = null;
int resultCount = -1;
boolean recordInserted = false;
//Parameters
String projectId = context.getRequest().getParameter("pid");
checkReturnPage(context);
Assignment thisAssignment = (Assignment) context.getForm... | public String executeCommandSave(ActionContext context) {
Connection db = null;
int resultCount = -1;
boolean recordInserted = false;
//Parameters
String projectId = context.getRequest().getParameter("pid");
checkReturnPage(context);
Assignment thisAssignment = (Assignment) context.getForm... |
diff --git a/src/main/java/org/osaf/cosmo/jackrabbit/query/TextCalendarTextFilter.java b/src/main/java/org/osaf/cosmo/jackrabbit/query/TextCalendarTextFilter.java
index 95b63e8bd..3997d9d69 100644
--- a/src/main/java/org/osaf/cosmo/jackrabbit/query/TextCalendarTextFilter.java
+++ b/src/main/java/org/osaf/cosmo/jackrabb... | true | true | public List doFilter(PropertyState data,
String encoding,
NamespaceMappings mappings)
throws RepositoryException {
InternalValue[] values = data.getValues();
if (values.length == 1) {
BLOBFileValue blob = (BLOBFileValue) values[0... | public List doFilter(PropertyState data,
String encoding,
NamespaceMappings mappings)
throws RepositoryException {
InternalValue[] values = data.getValues();
if (values.length == 1) {
BLOBFileValue blob = (BLOBFileValue) values[0... |
diff --git a/common/src/main/java/cz/incad/kramerius/utils/conf/KConfiguration.java b/common/src/main/java/cz/incad/kramerius/utils/conf/KConfiguration.java
index b5180456b..2cf671559 100644
--- a/common/src/main/java/cz/incad/kramerius/utils/conf/KConfiguration.java
+++ b/common/src/main/java/cz/incad/kramerius/utils/... | true | true | private Configuration findAllConfigurations() throws IOException {
CompositeConfiguration allConfiguration = new CompositeConfiguration();
try {
Enumeration<URL> resources = this.getClass().getClassLoader().getResources("res/configuration.properties");
while(resources.hasMoreElements()) {
URL nextElement... | private Configuration findAllConfigurations() throws IOException {
CompositeConfiguration allConfiguration = new CompositeConfiguration();
try {
Enumeration<URL> resources = this.getClass().getClassLoader().getResources("res/configuration.properties");
while(resources.hasMoreElements()) {
URL nextElement... |
diff --git a/src/game/MainWindow.java b/src/game/MainWindow.java
index c177ccf..66a4b4f 100644
--- a/src/game/MainWindow.java
+++ b/src/game/MainWindow.java
@@ -1,184 +1,184 @@
package game;
import java.awt.BorderLayout;
import java.awt.Dimension;
import java.awt.event.ActionEvent;
import java.awt.event.ActionLi... | false | true | private JMenuItem createFileHelpItem() {
JMenuItem item = new JMenuItem("Help");
class MenuItemListener implements ActionListener {
int count;
String[] helpMessage;
MainWindow mw;
String[] options;
public MenuItemListener(MainWindow mw) {
this.mw = mw;
helpMessage = mw.getHelpMessage();
... | private JMenuItem createFileHelpItem() {
JMenuItem item = new JMenuItem("Help");
class MenuItemListener implements ActionListener {
int count;
String[] helpMessage;
MainWindow mw;
String[] options;
public MenuItemListener(MainWindow mw) {
this.mw = mw;
helpMessage = mw.getHelpMessage();
... |
diff --git a/scheduler/src/main/java/org/mobicents/media/server/scheduler/Task.java b/scheduler/src/main/java/org/mobicents/media/server/scheduler/Task.java
index 15c4808e3..a3e6addcc 100644
--- a/scheduler/src/main/java/org/mobicents/media/server/scheduler/Task.java
+++ b/scheduler/src/main/java/org/mobicents/media/se... | true | true | public Object call() {
if (this.isActive) {
try {
perform();
//notify listenet
if (this.listener != null) {
this.listener.onTerminate();
}
//submit next partition
// if (chain != null) cha... | public Object call() {
if (this.isActive) {
try {
perform();
//notify listener
if (this.listener != null) {
this.listener.onTerminate();
}
//submit next partition
// if (chain != null) cha... |
diff --git a/gshell/gshell-core/src/test/java/org/apache/servicemix/kernel/gshell/core/Test.java b/gshell/gshell-core/src/test/java/org/apache/servicemix/kernel/gshell/core/Test.java
index f1bff46e..2dc4cc53 100644
--- a/gshell/gshell-core/src/test/java/org/apache/servicemix/kernel/gshell/core/Test.java
+++ b/gshell/gs... | true | true | public void test() throws Exception {
System.setProperty("startLocalConsole", "true");
ClassPathXmlApplicationContext context = new ClassPathXmlApplicationContext(
new String[] { "META-INF/spring/gshell.xml",
"META-INF/spring/gshell-vfs.xml",
... | public void test() throws Exception {
System.setProperty("startLocalConsole", "true");
System.setProperty("servicemix.name", "root");
ClassPathXmlApplicationContext context = new ClassPathXmlApplicationContext(
new String[] { "META-INF/spring/gshell.xml",
... |
diff --git a/src/main/java/com/jin/tpdb/persistence/DAO.java b/src/main/java/com/jin/tpdb/persistence/DAO.java
index 67d9ebc..bdc6510 100755
--- a/src/main/java/com/jin/tpdb/persistence/DAO.java
+++ b/src/main/java/com/jin/tpdb/persistence/DAO.java
@@ -1,116 +1,116 @@
package com.jin.tpdb.persistence;
import java.u... | true | true | public Long getAlbumTotalComments(int id) {
/*$albums_query = "SELECT users.username, albums.album_id, albums.uploader_user_id, albums.album_name,
albums.upload_date, albums.cover, albums.description, artists.artist_name,
(SELECT COUNT( comment_id ) FROM comments WHERE comments.album_id = albums.albu... | public Long getAlbumTotalComments(int id) {
/*$albums_query = "SELECT users.username, albums.album_id, albums.uploader_user_id, albums.album_name,
albums.upload_date, albums.cover, albums.description, artists.artist_name,
(SELECT COUNT( comment_id ) FROM comments WHERE comments.album_id = albums.albu... |
diff --git a/src/net/sf/freecol/client/gui/Canvas.java b/src/net/sf/freecol/client/gui/Canvas.java
index 22a095a89..357754f8a 100644
--- a/src/net/sf/freecol/client/gui/Canvas.java
+++ b/src/net/sf/freecol/client/gui/Canvas.java
@@ -1,2514 +1,2514 @@
/**
* Copyright (C) 2002-2011 The FreeCol Team
*
* This fil... | true | true | private JInternalFrame addAsFrame(JComponent comp, boolean toolBox, PopupPosition popupPosition) {
final int FRAME_EMPTY_SPACE = 60;
final JInternalFrame f = (toolBox) ? new ToolBoxFrame() : new JInternalFrame();
if (f.getContentPane() instanceof JComponent) {
JComponent c = (JC... | private JInternalFrame addAsFrame(JComponent comp, boolean toolBox, PopupPosition popupPosition) {
final int FRAME_EMPTY_SPACE = 60;
final JInternalFrame f = (toolBox) ? new ToolBoxFrame() : new JInternalFrame();
if (f.getContentPane() instanceof JComponent) {
JComponent c = (JC... |
diff --git a/cotrix/cotrix-test-domain/src/test/java/org/acme/codelists/ValueTypeTest.java b/cotrix/cotrix-test-domain/src/test/java/org/acme/codelists/ValueTypeTest.java
index 83663220..4e4e7b8a 100644
--- a/cotrix/cotrix-test-domain/src/test/java/org/acme/codelists/ValueTypeTest.java
+++ b/cotrix/cotrix-test-domain/s... | false | true | public void canBeFluentlyConstructed() {
ValueType minimal = valueType();
//defaults
assertNotNull(minimal.constraints().asSingleConstraint());
assertFalse(minimal.isRequired());
assertTrue(minimal.isValid("anything"));
assertNull(minimal.defaultValue());
//a maximal sentence
ValueType type = ... | public void canBeFluentlyConstructed() {
ValueType minimal = valueType();
//defaults
assertNotNull(minimal.constraints().asSingleConstraint());
assertTrue(minimal.isValid("anything"));
assertNull(minimal.defaultValue());
//a maximal sentence
ValueType type = valueType()
.with(min_length.inst... |
diff --git a/modules/activiti-engine/src/main/java/org/activiti/engine/impl/persistence/entity/EventSubscriptionEntity.java b/modules/activiti-engine/src/main/java/org/activiti/engine/impl/persistence/entity/EventSubscriptionEntity.java
index 7d41df078..478ee78c6 100644
--- a/modules/activiti-engine/src/main/java/org/a... | true | true | protected void scheduleEventAsync(Serializable payload) {
final CommandContext commandContext = Context.getCommandContext();
MessageEntity message = new MessageEntity();
message.setJobHandlerType(ProcessEventJobHandler.TYPE);
message.setJobHandlerConfiguration(id);
// TODO: support payload
... | protected void scheduleEventAsync(Serializable payload) {
final CommandContext commandContext = Context.getCommandContext();
MessageEntity message = new MessageEntity();
message.setJobHandlerType(ProcessEventJobHandler.TYPE);
message.setJobHandlerConfiguration(id);
message.setTenantId(getTen... |
diff --git a/src/test/java/com/github/kpacha/jkata/fizzBuzz/test/FizzBuzzTest.java b/src/test/java/com/github/kpacha/jkata/fizzBuzz/test/FizzBuzzTest.java
index fddbbfe..82a4615 100644
--- a/src/test/java/com/github/kpacha/jkata/fizzBuzz/test/FizzBuzzTest.java
+++ b/src/test/java/com/github/kpacha/jkata/fizzBuzz/test/F... | true | true | public static List<Object[]> data() {
final Object[][] objects = { { 1, 1 }, { 2, 2 }, { 3, "Fizz" },
{ 4, 4 } };
return Arrays.asList(objects);
}
| public static List<Object[]> data() {
final Object[][] objects = { { 1, 1 }, { 2, 2 }, { 3, "Fizz" },
{ 4, 4 }, { 5, "Buzz" } };
return Arrays.asList(objects);
}
|
diff --git a/mes-plugins/mes-plugins-material-requirements/src/main/java/com/qcadoo/mes/materialRequirements/internal/MaterialRequirementReportDataServiceImpl.java b/mes-plugins/mes-plugins-material-requirements/src/main/java/com/qcadoo/mes/materialRequirements/internal/MaterialRequirementReportDataServiceImpl.java
ind... | false | true | public final Map<Entity, BigDecimal> getQuantitiesForOrdersTechnologyProducts(final List<Entity> orders, final Boolean onlyComponents) {
Map<Entity, BigDecimal> products = new HashMap<Entity, BigDecimal>();
for (Entity component : orders) {
Entity order = (Entity) component.getField("ord... | public final Map<Entity, BigDecimal> getQuantitiesForOrdersTechnologyProducts(final List<Entity> orders,
final Boolean onlyComponents) {
Map<Entity, BigDecimal> products = new HashMap<Entity, BigDecimal>();
for (Entity order : orders) {
Entity technology = (Entity) order.getF... |
diff --git a/code/br.ufpe.cin.reviewer.ui.rcp/src/br/ufpe/cin/reviewer/ui/rcp/literaturereview/LiteratureReviewView.java b/code/br.ufpe.cin.reviewer.ui.rcp/src/br/ufpe/cin/reviewer/ui/rcp/literaturereview/LiteratureReviewView.java
index d8eb6df..abd8f56 100644
--- a/code/br.ufpe.cin.reviewer.ui.rcp/src/br/ufpe/cin/revi... | true | true | private void createLiteratureWidgets(Composite parent) {
sash = new SashForm(form.getBody(),SWT.HORIZONTAL);
sash.setLayout(new GridLayout(4, false));
GridData sashLayout = new GridData(GridData.FILL_VERTICAL, GridData.FILL_HORIZONTAL);
sashLayout.grabExcessHorizontalSpace = true;
sashLayout.grabExcessVer... | private void createLiteratureWidgets(Composite parent) {
sash = new SashForm(form.getBody(),SWT.HORIZONTAL);
sash.setLayout(new GridLayout(4, false));
GridData sashLayout = new GridData(GridData.FILL_BOTH);
sashLayout.grabExcessHorizontalSpace = true;
sashLayout.grabExcessVerticalSpace = true;
sash.setL... |
diff --git a/toolsrc/org/mozilla/javascript/tools/shell/JSConsole.java b/toolsrc/org/mozilla/javascript/tools/shell/JSConsole.java
index e1e5720b..74e4daa6 100644
--- a/toolsrc/org/mozilla/javascript/tools/shell/JSConsole.java
+++ b/toolsrc/org/mozilla/javascript/tools/shell/JSConsole.java
@@ -1,211 +1,211 @@
/* -*- M... | true | true | public JSConsole(String[] args) {
super("Rhino JavaScript Console");
JMenuBar menubar = new JMenuBar();
createFileChooser();
String[] fileItems = {"Load...", "Exit"};
String[] fileCmds = {"Load", "Exit"};
char[] fileShortCuts = {'L', 'X'};
String[] editItems... | public JSConsole(String[] args) {
super("Rhino JavaScript Console");
JMenuBar menubar = new JMenuBar();
createFileChooser();
String[] fileItems = {"Load...", "Exit"};
String[] fileCmds = {"Load", "Exit"};
char[] fileShortCuts = {'L', 'X'};
String[] editItems... |
diff --git a/maven-plugins/maven-rio-plugin/src/main/java/org/jini/rio/tools/maven/rio/JsbMojo.java b/maven-plugins/maven-rio-plugin/src/main/java/org/jini/rio/tools/maven/rio/JsbMojo.java
index 72fd4f2e..ae2487e9 100755
--- a/maven-plugins/maven-rio-plugin/src/main/java/org/jini/rio/tools/maven/rio/JsbMojo.java
+++ b/... | true | true | public void execute() throws MojoExecutionException {
// build Ant project
Project antProject = new Project();
// build the compilation classpath as a Ant path
Path classpath = new Path(new Project());
List classpaths;
try {
classpaths = project.getCompil... | public void execute() throws MojoExecutionException {
// build Ant project
Project antProject = new Project();
// build the compilation classpath as a Ant path
Path classpath = new Path(new Project());
List classpaths;
try {
classpaths = project.getCompil... |
diff --git a/src/test/java/st/redline/PrimObjectMetaclassTest.java b/src/test/java/st/redline/PrimObjectMetaclassTest.java
index dd2e5ae7..ea19ce3e 100644
--- a/src/test/java/st/redline/PrimObjectMetaclassTest.java
+++ b/src/test/java/st/redline/PrimObjectMetaclassTest.java
@@ -1,116 +1,117 @@
package st.redline;
i... | true | true | public void shouldExpandAttributesWhenNewClassVariableAdded() {
PrimObject newElement = PrimObject.BOOTSTRAPPING ? PrimObject.PRIM_NIL : PrimObject.NIL;
PrimObjectMetaclass metaclass = new PrimObjectMetaclass();
int before = metaclass.attributes.length;
int currentNextVariableIndex =... | public void shouldExpandAttributesWhenNewClassVariableAdded() {
PrimObject.BOOTSTRAPPING = true;
PrimObject newElement = PrimObject.BOOTSTRAPPING ? PrimObject.PRIM_NIL : PrimObject.NIL;
PrimObjectMetaclass metaclass = new PrimObjectMetaclass();
int before = metaclass.attributes.length;
... |
diff --git a/java-squid/src/main/java/org/sonar/java/ast/visitors/SyntaxHighlighterVisitor.java b/java-squid/src/main/java/org/sonar/java/ast/visitors/SyntaxHighlighterVisitor.java
index ce12fd190..52ad3ca12 100644
--- a/java-squid/src/main/java/org/sonar/java/ast/visitors/SyntaxHighlighterVisitor.java
+++ b/java-squid... | true | true | public void visitFile(AstNode astNode) {
SourceFile squidFile = peekSourceFile();
JavaFile sonarFile = SquidUtils.convertJavaFileKeyFromSquidFormat(squidFile.getKey());
highlightable = perspectives.as(Highlightable.class, sonarFile);
lineStart = Lists.newArrayList();
final String content;
try... | public void visitFile(AstNode astNode) {
SourceFile squidFile = peekSourceFile();
JavaFile sonarFile = SquidUtils.convertJavaFileKeyFromSquidFormat(squidFile.getKey());
highlightable = perspectives.as(Highlightable.class, sonarFile);
lineStart = Lists.newArrayList();
final String content;
try... |
diff --git a/GAE/src/org/waterforpeople/mapping/app/web/EnvServlet.java b/GAE/src/org/waterforpeople/mapping/app/web/EnvServlet.java
index c9ce54454..b7a8944d3 100644
--- a/GAE/src/org/waterforpeople/mapping/app/web/EnvServlet.java
+++ b/GAE/src/org/waterforpeople/mapping/app/web/EnvServlet.java
@@ -1,99 +1,102 @@
/*
... | true | true | protected void doGet(HttpServletRequest req, HttpServletResponse resp)
throws ServletException, IOException {
final VelocityEngine engine = new VelocityEngine();
engine.setProperty("runtime.log.logsystem.class",
"org.apache.velocity.runtime.log.NullLogChute");
try {
engine.init();
} catch (Exception... | protected void doGet(HttpServletRequest req, HttpServletResponse resp)
throws ServletException, IOException {
final VelocityEngine engine = new VelocityEngine();
engine.setProperty("runtime.log.logsystem.class",
"org.apache.velocity.runtime.log.NullLogChute");
try {
engine.init();
} catch (Exception... |
diff --git a/backends/gdx-backend-lwjgl/src/com/badlogic/gdx/backends/lwjgl/LwjglApplication.java b/backends/gdx-backend-lwjgl/src/com/badlogic/gdx/backends/lwjgl/LwjglApplication.java
index d61d67a9e..52ff81012 100644
--- a/backends/gdx-backend-lwjgl/src/com/badlogic/gdx/backends/lwjgl/LwjglApplication.java
+++ b/back... | true | true | void mainLoop () {
try {
graphics.setupDisplay();
} catch (LWJGLException e) {
throw new GdxRuntimeException(e);
}
listener.create();
listener.resize(graphics.getWidth(), graphics.getHeight());
graphics.resize = false;
int lastWidth = graphics.getWidth();
int lastHeight = graphics.getHeight();
... | void mainLoop () {
try {
graphics.setupDisplay();
} catch (LWJGLException e) {
throw new GdxRuntimeException(e);
}
listener.create();
listener.resize(graphics.getWidth(), graphics.getHeight());
graphics.resize = false;
int lastWidth = graphics.getWidth();
int lastHeight = graphics.getHeight();
... |
diff --git a/shell/impl/src/main/java/org/jboss/forge/addon/shell/aesh/completion/SelectComponentCompletionStrategy.java b/shell/impl/src/main/java/org/jboss/forge/addon/shell/aesh/completion/SelectComponentCompletionStrategy.java
index ba77ea885..b03157445 100644
--- a/shell/impl/src/main/java/org/jboss/forge/addon/sh... | false | true | public void complete(CompleteOperation completeOperation, InputComponent<?, Object> input, ShellContext context,
String typedValue, ConverterFactory converterFactory)
{
SelectComponent<?, Object> selectComponent = (SelectComponent<?, Object>) input;
Converter<Object, String> itemLabelConve... | public void complete(CompleteOperation completeOperation, InputComponent<?, Object> input, ShellContext context,
String typedValue, ConverterFactory converterFactory)
{
SelectComponent<?, Object> selectComponent = (SelectComponent<?, Object>) input;
Converter<Object, String> itemLabelConve... |
diff --git a/src/main/java/lcmc/LCMC.java b/src/main/java/lcmc/LCMC.java
index 2412f977..c78afc3a 100644
--- a/src/main/java/lcmc/LCMC.java
+++ b/src/main/java/lcmc/LCMC.java
@@ -1,800 +1,800 @@
/*
* This file is part of Linux Cluster Management Console
* written by Rasto Levrinc.
*
* Copyright (C) 2011, Rasti... | false | true | protected static String initApp(final String[] args) {
try {
/* Metal */
UIManager.setLookAndFeel("javax.swing.plaf.metal.MetalLookAndFeel");
MetalLookAndFeel.setCurrentTheme(
new OceanTheme() {
/** e.g. arrows on split pane... */
... | protected static String initApp(final String[] args) {
try {
/* Metal */
UIManager.setLookAndFeel("javax.swing.plaf.metal.MetalLookAndFeel");
MetalLookAndFeel.setCurrentTheme(
new OceanTheme() {
/** e.g. arrows on split pane... */
... |
diff --git a/trunk/src/webcamstudio/streams/SourceText.java b/trunk/src/webcamstudio/streams/SourceText.java
index 4fa6996..6ec1aaf 100644
--- a/trunk/src/webcamstudio/streams/SourceText.java
+++ b/trunk/src/webcamstudio/streams/SourceText.java
@@ -1,235 +1,235 @@
/*
* To change this template, choose Tools | Templat... | true | true | public void updateContent(String content) {
this.content = content;
captureWidth = width;
captureHeight = height;
int textHeight = captureHeight;
int textWidth = captureWidth;
image = new BufferedImage(captureWidth, captureHeight, BufferedImage.TYPE_INT_ARGB);
... | public void updateContent(String content) {
this.content = content;
captureWidth = width;
captureHeight = height;
int textHeight = captureHeight;
int textWidth = captureWidth;
image = new BufferedImage(captureWidth, captureHeight, BufferedImage.TYPE_INT_ARGB);
... |
diff --git a/src/main/java/com/jcabi/aspects/aj/MethodLogger.java b/src/main/java/com/jcabi/aspects/aj/MethodLogger.java
index 8e2c764..740e56f 100644
--- a/src/main/java/com/jcabi/aspects/aj/MethodLogger.java
+++ b/src/main/java/com/jcabi/aspects/aj/MethodLogger.java
@@ -1,428 +1,432 @@
/**
* Copyright (c) 2012-201... | false | true | private Object wrap(final ProceedingJoinPoint point, final Method method,
final Loggable annotation) throws Throwable {
if (Thread.interrupted()) {
throw new IllegalStateException("thread interrupted");
}
final long start = System.nanoTime();
final MethodLogger.Ma... | private Object wrap(final ProceedingJoinPoint point, final Method method,
final Loggable annotation) throws Throwable {
if (Thread.interrupted()) {
throw new IllegalStateException("thread interrupted");
}
final long start = System.nanoTime();
final MethodLogger.Ma... |
diff --git a/src/java/org/apache/http/HeaderElement.java b/src/java/org/apache/http/HeaderElement.java
index 9a4e209f6..922b9c286 100644
--- a/src/java/org/apache/http/HeaderElement.java
+++ b/src/java/org/apache/http/HeaderElement.java
@@ -1,388 +1,388 @@
/*
* $HeadURL$
* $Revision$
* $Date$
*
* ===========... | true | true | public static final HeaderElement[] parseAll(
final CharArrayBuffer buffer, final int indexFrom, final int indexTo) {
if (buffer == null) {
throw new IllegalArgumentException("Char array buffer may not be null");
}
if (indexFrom < 0) {
throw new IndexOutOf... | public static final HeaderElement[] parseAll(
final CharArrayBuffer buffer, final int indexFrom, final int indexTo) {
if (buffer == null) {
throw new IllegalArgumentException("Char array buffer may not be null");
}
if (indexFrom < 0) {
throw new IndexOutOf... |
diff --git a/src/org/apache/xerces/impl/v2/SchemaGrammar.java b/src/org/apache/xerces/impl/v2/SchemaGrammar.java
index e66d47abe..3ad4ff0c0 100644
--- a/src/org/apache/xerces/impl/v2/SchemaGrammar.java
+++ b/src/org/apache/xerces/impl/v2/SchemaGrammar.java
@@ -1,447 +1,446 @@
/*
* The Apache Software License, Versio... | true | true | protected SchemaGrammar(SymbolTable symbolTable, boolean fullSet) {
fSymbolTable = symbolTable;
fTargetNamespace = SchemaSymbols.URI_SCHEMAFORSCHEMA;
// REVISIT: for default datatype creation an error reporter is null.
// In case we ever see an error, Runtime exception will be throw... | protected SchemaGrammar(SymbolTable symbolTable, boolean fullSet) {
fSymbolTable = symbolTable;
fTargetNamespace = SchemaSymbols.URI_SCHEMAFORSCHEMA;
// REVISIT: for default datatype creation an error reporter is null.
// In case we ever see an error, Runtime exception will be throw... |
diff --git a/src/CalendarEventDisplay.java b/src/CalendarEventDisplay.java
index 65155e8..6c312b1 100644
--- a/src/CalendarEventDisplay.java
+++ b/src/CalendarEventDisplay.java
@@ -1,26 +1,27 @@
import java.awt.GridLayout;
import javax.swing.*;
public class CalendarEventDisplay extends JFrame{
public Calendar... | false | true | public CalendarEventDisplay(int day, int month, int year, CalendarData Data)
{
this.setDefaultCloseOperation(JFrame.DISPOSE_ON_CLOSE);
this.setTitle("Events");
this.setSize(250, 250);
this.setVisible(true);
int count = Data.GetCount(day, month, year);
this.setLayout(new GridLayout(count, 1));
JButt... | public CalendarEventDisplay(int day, int month, int year, CalendarData Data)
{
this.setDefaultCloseOperation(JFrame.DISPOSE_ON_CLOSE);
this.setTitle("Events");
this.setSize(250, 250);
this.setVisible(true);
int count = Data.GetCount(day, month + 1, year);
this.setLayout(new GridLayout(count, 1));
J... |
diff --git a/src/to/joe/j2mc/seniorfun/command/FireAllAdminscommand.java b/src/to/joe/j2mc/seniorfun/command/FireAllAdminscommand.java
index b4d24e5..b024346 100644
--- a/src/to/joe/j2mc/seniorfun/command/FireAllAdminscommand.java
+++ b/src/to/joe/j2mc/seniorfun/command/FireAllAdminscommand.java
@@ -1,74 +1,76 @@
pack... | false | true | public void exec(CommandSender sender, String commandName, String[] args, Player player, boolean isPlayer) {
if(player.hasPermission("j2mc.senior")){
for(Player plr: J2MC_Manager.getVisibility().getOnlinePlayers(null)){
int x = plr.getLocation().getBlockX();
double y = plr.getLocation().get... | public void exec(CommandSender sender, String commandName, String[] args, Player player, boolean isPlayer) {
if(player.hasPermission("j2mc.senior")){
plugin.getLogger().info(player.getName() + " is firing all admins");
for(Player plr: Bukkit.getServer().getOnlinePlayers()){
int x = plr.getLo... |
diff --git a/web/src/net/myrrix/web/AllRecommendations.java b/web/src/net/myrrix/web/AllRecommendations.java
index 2438a82..a161368 100644
--- a/web/src/net/myrrix/web/AllRecommendations.java
+++ b/web/src/net/myrrix/web/AllRecommendations.java
@@ -1,118 +1,118 @@
/*
* Copyright Myrrix Ltd
*
* Licensed under the... | true | true | public Object call() throws InterruptedException, NotReadyException, ExecutionException {
final ServerRecommender recommender = new ServerRecommender(config.getLocalInputDir());
recommender.await();
ExecutorService executorService =
Executors.newFixedThreadPool(Runtime.getRuntime().availableProc... | public Object call() throws InterruptedException, NotReadyException, ExecutionException {
final ServerRecommender recommender = new ServerRecommender(config.getLocalInputDir());
recommender.await();
ExecutorService executorService =
Executors.newFixedThreadPool(Runtime.getRuntime().availableProc... |
diff --git a/src/test/java/org/odlabs/wiquery/ui/selectable/SelectableAjaxBehaviorTestCase.java b/src/test/java/org/odlabs/wiquery/ui/selectable/SelectableAjaxBehaviorTestCase.java
index 2e0a4bed..bf09293f 100644
--- a/src/test/java/org/odlabs/wiquery/ui/selectable/SelectableAjaxBehaviorTestCase.java
+++ b/src/test/jav... | true | true | public void testStatement() {
InnerSelectableAjaxBehavior selectableAjaxBehavior = new InnerSelectableAjaxBehavior();
WebMarkupContainer component = new WebMarkupContainer("anId");
component.setMarkupId("anId");
component.add(selectableAjaxBehavior);
WebPage webPage = new InnerPage();
webPage.add(componen... | public void testStatement() {
InnerSelectableAjaxBehavior selectableAjaxBehavior = new InnerSelectableAjaxBehavior();
WebMarkupContainer component = new WebMarkupContainer("anId");
component.setMarkupId("anId");
component.add(selectableAjaxBehavior);
WebPage webPage = new InnerPage();
webPage.add(componen... |
diff --git a/javasvn/src/org/tmatesoft/svn/core/internal/wc/SVNWCAccess.java b/javasvn/src/org/tmatesoft/svn/core/internal/wc/SVNWCAccess.java
index d1ad0f9bd..0409a26f2 100644
--- a/javasvn/src/org/tmatesoft/svn/core/internal/wc/SVNWCAccess.java
+++ b/javasvn/src/org/tmatesoft/svn/core/internal/wc/SVNWCAccess.java
@@ ... | true | true | public static SVNWCAccess create(File file) throws SVNException {
file = new File(file.getAbsolutePath());
File parentFile = file.getParentFile();
String name = file.getName();
SVNFileType parentType = SVNFileType.getType(parentFile);
if (parentFile != null && parentType != S... | public static SVNWCAccess create(File file) throws SVNException {
file = new File(file.getAbsolutePath());
File parentFile = file.getParentFile();
String name = file.getName();
SVNFileType parentType = SVNFileType.getType(parentFile);
if (parentFile != null && parentType != S... |
diff --git a/GAE/src/org/waterforpeople/mapping/helper/AccessPointHelper.java b/GAE/src/org/waterforpeople/mapping/helper/AccessPointHelper.java
index 95c8fd6ed..21ab03246 100644
--- a/GAE/src/org/waterforpeople/mapping/helper/AccessPointHelper.java
+++ b/GAE/src/org/waterforpeople/mapping/helper/AccessPointHelper.java... | false | true | public static void setAccessPointField(AccessPoint ap,
QuestionAnswerStore qas, SurveyAttributeMapping mapping,
AccessPointMappingHistory apmh) throws SecurityException,
NoSuchFieldException, IllegalArgumentException,
IllegalAccessException {
apmh.setResponseAnswerType(qas.getType());
if (GEO_TYPE.equ... | public static void setAccessPointField(AccessPoint ap,
QuestionAnswerStore qas, SurveyAttributeMapping mapping,
AccessPointMappingHistory apmh) throws SecurityException,
NoSuchFieldException, IllegalArgumentException,
IllegalAccessException {
apmh.setResponseAnswerType(qas.getType());
if (GEO_TYPE.equ... |
diff --git a/org.eclipse.mylyn.discovery.ui/src/org/eclipse/mylyn/internal/discovery/ui/wizards/ConnectorDiscoveryWizardMainPage.java b/org.eclipse.mylyn.discovery.ui/src/org/eclipse/mylyn/internal/discovery/ui/wizards/ConnectorDiscoveryWizardMainPage.java
index 61bcaa8f..66bbb931 100644
--- a/org.eclipse.mylyn.discove... | true | true | public void createControl(Composite parent) {
viewer = new DiscoveryViewer(this, getContainer());
viewer.setShowConnectorDescriptorKindFilter(getWizard().isShowConnectorDescriptorKindFilter());
viewer.setShowConnectorDescriptorTextFilter(getWizard().isShowConnectorDescriptorTextFilter());
viewer.setVerifyUpdat... | public void createControl(Composite parent) {
viewer = new DiscoveryViewer(this, getContainer());
viewer.setShowConnectorDescriptorKindFilter(getWizard().isShowConnectorDescriptorKindFilter());
viewer.setShowConnectorDescriptorTextFilter(getWizard().isShowConnectorDescriptorTextFilter());
viewer.setVerifyUpdat... |
diff --git a/seqware-queryengine-backend/src/main/java/com/github/seqware/queryengine/plugins/runners/hbasemr/MRHBasePluginRunner.java b/seqware-queryengine-backend/src/main/java/com/github/seqware/queryengine/plugins/runners/hbasemr/MRHBasePluginRunner.java
index 3ee406cf..5bd58dd9 100644
--- a/seqware-queryengine-bac... | true | true | public MRHBasePluginRunner(MapReducePlugin mapReducePlugin, Reference reference, List<FeatureSet> inputSet, Object... parameters) {
// handle null inputSet
if (inputSet == null){
inputSet = new ArrayList<FeatureSet>();
}
// we should either have a reference or more than o... | public MRHBasePluginRunner(MapReducePlugin mapReducePlugin, Reference reference, List<FeatureSet> inputSet, Object... parameters) {
// handle null inputSet
if (inputSet == null){
inputSet = new ArrayList<FeatureSet>();
}
// we should either have a reference or more than o... |
diff --git a/src/main/java/org/mobicents/servlet/sip/restcomm/interpreter/tagstrategies/TwiMLTagStrategy.java b/src/main/java/org/mobicents/servlet/sip/restcomm/interpreter/tagstrategies/TwiMLTagStrategy.java
index b4626a0a4..a20b21ef2 100644
--- a/src/main/java/org/mobicents/servlet/sip/restcomm/interpreter/tagstrateg... | true | true | protected void answer(final Call call) throws TagStrategyException {
if(call.getStatus().equals("ringing")) {
try {
call.answer();
} catch(final CallException exception) {
throw new TagStrategyException(exception);
}
}
}
| protected void answer(final Call call) throws TagStrategyException {
if(call.getStatus().equals("ringing")) {
try {
call.answer();
call.connect();
} catch(final CallException exception) {
throw new TagStrategyException(exception);
}
}
}
|
diff --git a/extrabiomes/src/bukkit/extrabiomes/config/ConfigureBlocks.java b/extrabiomes/src/bukkit/extrabiomes/config/ConfigureBlocks.java
index a65dfa18..39d168b0 100644
--- a/extrabiomes/src/bukkit/extrabiomes/config/ConfigureBlocks.java
+++ b/extrabiomes/src/bukkit/extrabiomes/config/ConfigureBlocks.java
@@ -1,223... | false | true | public static void initialize() {
if (Config.enableClassicMode) return;
final int i = Config.getOrCreateIntProperty("crackedsand.id",
"block", 150) & 0xff;
if (i != 0) {
crackedSandCanGrow = Config.getOrCreateBooleanProperty(
"wasteland.enable.growth", "BIOME",
crackedSandCanGrow);
crackedS... | public static void initialize() {
if (Config.enableClassicMode) return;
final int i = Config.getOrCreateIntProperty("crackedsand.id",
"block", 150) & 0xff;
if (i != 0) {
crackedSandCanGrow = Config.getOrCreateBooleanProperty(
"wasteland.enable.growth", "BIOME",
crackedSandCanGrow);
crackedS... |
diff --git a/src/com/coffeebean/waterreminder/WaterReminderActivity.java b/src/com/coffeebean/waterreminder/WaterReminderActivity.java
index 0fcc6aa..372be07 100644
--- a/src/com/coffeebean/waterreminder/WaterReminderActivity.java
+++ b/src/com/coffeebean/waterreminder/WaterReminderActivity.java
@@ -1,281 +1,281 @@
pa... | true | true | private void checkForInitData() {
int i = 0, num = Constants.NUMBER;
int countDb = 0;
Cursor cursor;
cursor = dbMgr.queryData(Constants.DATA_TABLE,
new String[] { "count(*)" }, null);
if (cursor != null && 0 != cursor.getCount()) {
if (cursor.moveToFirst()) {
countDb = cursor.getInt(cursor.getCol... | private void checkForInitData() {
int i = 0, num = Constants.NUMBER;
int countDb = 0;
Cursor cursor;
cursor = dbMgr.queryData(Constants.DATA_TABLE,
new String[] { "count(*)" }, null);
if (cursor != null && 0 != cursor.getCount()) {
if (cursor.moveToFirst()) {
countDb = cursor.getInt(cursor.getCol... |
diff --git a/filters/openxml/src/main/java/net/sf/okapi/filters/openxml/OpenXMLContentFilter.java b/filters/openxml/src/main/java/net/sf/okapi/filters/openxml/OpenXMLContentFilter.java
index d2595d302..93cb3d17f 100644
--- a/filters/openxml/src/main/java/net/sf/okapi/filters/openxml/OpenXMLContentFilter.java
+++ b/filt... | true | true | public InputStream combineRepeatedFormat(final InputStream in, final PipedOutputStream pios)
{
final OutputStreamWriter osw;
final BufferedWriter bw;
final InputStreamReader isr;
final BufferedReader br;
PipedInputStream piis=null;
// final PipedOutputStream pios = new PipedOutputStream();
try
{
pii... | public InputStream combineRepeatedFormat(final InputStream in, final PipedOutputStream pios)
{
final OutputStreamWriter osw;
final BufferedWriter bw;
final InputStreamReader isr;
final BufferedReader br;
PipedInputStream piis=null;
// final PipedOutputStream pios = new PipedOutputStream();
try
{
pii... |
diff --git a/assembly/openejb-tomcat/openejb-tomcat-catalina/src/main/java/org/apache/openejb/tomcat/catalina/TomcatLoader.java b/assembly/openejb-tomcat/openejb-tomcat-catalina/src/main/java/org/apache/openejb/tomcat/catalina/TomcatLoader.java
index 0ee5b111d6..7b4e4dfcee 100644
--- a/assembly/openejb-tomcat/openejb-t... | true | true | public void init(Properties properties) throws Exception {
// Enable System EJBs like the MEJB and DeployerEJB
properties.setProperty("openejb.deployments.classpath", "true");
properties.setProperty("openejb.deployments.classpath.filter.systemapps", "false");
System.setProperty("open... | public void init(Properties properties) throws Exception {
// Enable System EJBs like the MEJB and DeployerEJB
properties.setProperty("openejb.deployments.classpath", "true");
properties.setProperty("openejb.deployments.classpath.filter.systemapps", "false");
System.setProperty("open... |
diff --git a/pj2/src/player/Chip.java b/pj2/src/player/Chip.java
index ead5e2e..94b7dc6 100644
--- a/pj2/src/player/Chip.java
+++ b/pj2/src/player/Chip.java
@@ -1,306 +1,307 @@
/* Chip.java */
package player;
import list.*;
class Chip {
private int color;
private int x;
private int y;
publ... | true | true | public void tester() {
Board board = new Board();
Move m1 = new Move(1, 1);
Move m2 = new Move(3, 1);
Move m3 = new Move(3, 3);
Move m4 = new Move(1, 3);
Move m5 = new Move(3, 5);
Chip chip = new Chip();
Chip c1 = new Chip();
Chip c2 = new Chip... | public void tester() {
Board board = new Board();
Move m1 = new Move(1, 1);
Move m2 = new Move(3, 1);
Move m3 = new Move(3, 3);
Move m4 = new Move(1, 3);
Move m5 = new Move(3, 5);
Chip chip = new Chip();
Chip c1 = new Chip();
Chip c2 = new Chip... |
diff --git a/benchmark/ycsb/src/test/java/com/impetus/kundera/ycsb/RedisYCSBTest.java b/benchmark/ycsb/src/test/java/com/impetus/kundera/ycsb/RedisYCSBTest.java
index 4789232da..396d9c117 100644
--- a/benchmark/ycsb/src/test/java/com/impetus/kundera/ycsb/RedisYCSBTest.java
+++ b/benchmark/ycsb/src/test/java/com/impetus... | true | true | private void testRead() throws Exception
{
//stop and start server
onDestroy();
onChangeRunType("t");
Runtime runtime = Runtime.getRuntime();
runner.startServer(true, runtime);
onRead();
}
| private void testRead() throws Exception
{
//stop and start server
onDestroy();
onChangeRunType("t");
Thread.sleep(30000);
Runtime runtime = Runtime.getRuntime();
runner.startServer(true, runtime);
onRead();
}
|
diff --git a/src/eu/bryants/anthony/toylanguage/compiler/passes/llvm/CodeGenerator.java b/src/eu/bryants/anthony/toylanguage/compiler/passes/llvm/CodeGenerator.java
index a5af1dd..36fe4b8 100644
--- a/src/eu/bryants/anthony/toylanguage/compiler/passes/llvm/CodeGenerator.java
+++ b/src/eu/bryants/anthony/toylanguage/com... | false | true | private LLVMValueRef buildExpression(Expression expression, LLVMValueRef llvmFunction, LLVMValueRef thisValue, Map<Variable, LLVMValueRef> variables)
{
if (expression instanceof ArithmeticExpression)
{
ArithmeticExpression arithmeticExpression = (ArithmeticExpression) expression;
LLVMValueRef le... | private LLVMValueRef buildExpression(Expression expression, LLVMValueRef llvmFunction, LLVMValueRef thisValue, Map<Variable, LLVMValueRef> variables)
{
if (expression instanceof ArithmeticExpression)
{
ArithmeticExpression arithmeticExpression = (ArithmeticExpression) expression;
LLVMValueRef le... |
diff --git a/modules/cipango/src/main/java/org/cipango/ProxyImpl.java b/modules/cipango/src/main/java/org/cipango/ProxyImpl.java
index 48b3fe1..82e3406 100644
--- a/modules/cipango/src/main/java/org/cipango/ProxyImpl.java
+++ b/modules/cipango/src/main/java/org/cipango/ProxyImpl.java
@@ -1,1052 +1,1053 @@
// =========... | true | true | public void handleResponse(SipResponse response)
{
_response = response;
int status = response.getStatus();
if (status == 100)
return;
if (Log.isDebugEnabled())
Log.debug("Got response {}", response, null);
/*
if (_tx.getRequest().isIni... | public void handleResponse(SipResponse response)
{
_response = response;
int status = response.getStatus();
if (status == 100)
return;
if (Log.isDebugEnabled())
Log.debug("Got response {}", response, null);
/*
if (_tx.getRequest().isIni... |
diff --git a/src/edu/dhbw/sos/GUI/CoursePanel.java b/src/edu/dhbw/sos/GUI/CoursePanel.java
index ef16f69..e3e25bf 100644
--- a/src/edu/dhbw/sos/GUI/CoursePanel.java
+++ b/src/edu/dhbw/sos/GUI/CoursePanel.java
@@ -1,291 +1,290 @@
/*
* *********************************************************
* Copyright (c) 2012 - ... | false | true | public void paint(Graphics g) {
setStudentArray();
Graphics2D ga = (Graphics2D) g;
ga.clearRect(0, 0, this.getWidth(), this.getHeight());
for (int x = 0; x < studentArray[0].length; x++) {
for (int y = 0; y < studentArray.length; y++) {
ga.setPaint(Color.green);
ga.fill(studentArray[y][x]);
... | public void paint(Graphics g) {
setStudentArray();
Graphics2D ga = (Graphics2D) g;
ga.clearRect(0, 0, this.getWidth(), this.getHeight());
for (int x = 0; x < studentArray[0].length; x++) {
for (int y = 0; y < studentArray.length; y++) {
ga.setPaint(Color.green);
ga.fill(studentArray[y][x]);
... |
diff --git a/org.aspectj.ajdt.core/testsrc/org/aspectj/ajdt/internal/compiler/batch/PartiallyExposedHierarchyTestCase.java b/org.aspectj.ajdt.core/testsrc/org/aspectj/ajdt/internal/compiler/batch/PartiallyExposedHierarchyTestCase.java
index de45e9ea5..7d0bdf113 100644
--- a/org.aspectj.ajdt.core/testsrc/org/aspectj/ajd... | true | true | public void testPartiallyExposedHierarchy () {
Message warning = new Message(11,"no interface constructor-execution join point");
//TODO This line number will change to 15 (from 5) when type mungers remember where they came from!
Message error = new Message(5, "type sample.Base must be accessible for weaving i... | public void testPartiallyExposedHierarchy () {
Message warning = new Message(11,"no interface constructor-execution join point");
Message error = new Message(15, "type sample.Base must be accessible for weaving interface inter type declaration from aspect sample.Trace");
CompilationResult result = ajc(baseDir,... |
diff --git a/apps/animaldb/plugins/fillanimaldb/FillAnimalDB.java b/apps/animaldb/plugins/fillanimaldb/FillAnimalDB.java
index e4aaa9786..d303678dc 100644
--- a/apps/animaldb/plugins/fillanimaldb/FillAnimalDB.java
+++ b/apps/animaldb/plugins/fillanimaldb/FillAnimalDB.java
@@ -1,750 +1,750 @@
package plugins.fillanimal... | false | true | public void populateDB(Login login) throws Exception, HandleRequestDelegationException,DatabaseException, ParseException, IOException {
// Login as admin to have enough rights to do this
login.login(db, "admin", "admin");
Calendar calendar = Calendar.getInstance();
Date now = calendar.getTime();
Log... | public void populateDB(Login login) throws Exception, HandleRequestDelegationException,DatabaseException, ParseException, IOException {
// Login as admin to have enough rights to do this
login.login(db, "admin", "admin");
Calendar calendar = Calendar.getInstance();
Date now = calendar.getTime();
Log... |
diff --git a/tools/ddms/libs/ddmuilib/src/com/android/ddmuilib/ScreenShotDialog.java b/tools/ddms/libs/ddmuilib/src/com/android/ddmuilib/ScreenShotDialog.java
index 88f1ad1e..b60c837f 100644
--- a/tools/ddms/libs/ddmuilib/src/com/android/ddmuilib/ScreenShotDialog.java
+++ b/tools/ddms/libs/ddmuilib/src/com/android/ddmu... | false | true | private void createContents(final Shell shell) {
GridData data;
final int colCount = 4;
shell.setLayout(new GridLayout(colCount, true));
// "refresh" button
Button refresh = new Button(shell, SWT.PUSH);
refresh.setText("Refresh");
data = new GridData(GridDa... | private void createContents(final Shell shell) {
GridData data;
final int colCount = 4;
shell.setLayout(new GridLayout(colCount, true));
// "refresh" button
Button refresh = new Button(shell, SWT.PUSH);
refresh.setText("Refresh");
data = new GridData(GridDa... |
diff --git a/test/unit/HibernateTwitterInstagramTest.java b/test/unit/HibernateTwitterInstagramTest.java
index 4564e1f..72cd14a 100644
--- a/test/unit/HibernateTwitterInstagramTest.java
+++ b/test/unit/HibernateTwitterInstagramTest.java
@@ -1,58 +1,58 @@
package unit;
import static org.junit.Assert.*;
import jav... | true | true | public void setUp() throws Exception {
tr = (TwitterReader) ClassFactory.getBeanByName("twitterReader");
twitterPics = new ArrayList<PictureData>();
twitterPics = tr.getPictures("#winter");
System.out.println(twitterPics.size());
for(PictureData pic1: twitterPics){
System.out.println(pic1.getId() + " " + ... | public void setUp() throws Exception {
tr = (TwitterReader) ClassFactory.getBeanByName("twitterReader");
twitterPics = new ArrayList<PictureData>();
twitterPics = tr.getPictures("#winter");
System.out.println(twitterPics.size());
for(PictureData pic1: twitterPics){
System.out.println(pic1.getId() + " " + ... |
diff --git a/gsf-wra/src/main/java/com/fatwire/gst/foundation/url/WraPageReference.java b/gsf-wra/src/main/java/com/fatwire/gst/foundation/url/WraPageReference.java
index c037211c..0a283709 100644
--- a/gsf-wra/src/main/java/com/fatwire/gst/foundation/url/WraPageReference.java
+++ b/gsf-wra/src/main/java/com/fatwire/gs... | true | true | public void setParameters(Map args, ICS ics) throws ReferenceException {
// no processing to do if not serving a page for SS
if (getSatelliteContext() == SatelliteContext.SATELLITE_SERVER && isGetTemplateUrl(args)) {
AssetId id = new AssetIdImpl((String) args.get("c"), Long.parseLong((S... | public void setParameters(@SuppressWarnings("rawtypes") Map args, ICS ics) throws ReferenceException {
// no processing to do if not serving a page for SS
if (getSatelliteContext() == SatelliteContext.SATELLITE_SERVER && isGetTemplateUrl(args)) {
AssetId id = new AssetIdImpl((String) ar... |
diff --git a/src/com/pittypanda/plugins/couch/glue/CouchApplication.java b/src/com/pittypanda/plugins/couch/glue/CouchApplication.java
index 776d60a..79ad19c 100644
--- a/src/com/pittypanda/plugins/couch/glue/CouchApplication.java
+++ b/src/com/pittypanda/plugins/couch/glue/CouchApplication.java
@@ -1,17 +1,17 @@
pack... | true | true | public static CouchApplicationType getInstance() {
if (instance != null) {
JythonObjectFactory factory = new JythonObjectFactory(
CouchApplicationType.class, "CouchApplication", "CouchApplication"
);
instance = (CouchApplicationType) factory.createObject();
}
return insta... | public static CouchApplicationType getInstance() {
if (instance == null) {
JythonObjectFactory factory = new JythonObjectFactory(
CouchApplicationType.class, "CouchApplication", "CouchApplication"
);
instance = (CouchApplicationType) factory.createObject();
}
return insta... |
diff --git a/src/com/appaholics/listviewfont/MainActivity.java b/src/com/appaholics/listviewfont/MainActivity.java
index a9503d3..0d7ac04 100644
--- a/src/com/appaholics/listviewfont/MainActivity.java
+++ b/src/com/appaholics/listviewfont/MainActivity.java
@@ -1,30 +1,30 @@
/**
* @author Raghav Sood
*/
package co... | true | true | protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_main);
ListView listView = (ListView) findViewById(R.id.listView1);
String[] values = new String[] { "Android", "iPhone", "WindowsMobile", "Blackberry", "WebOS", "Ubuntu",
"Windows7", ... | protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_main);
ListView listView = (ListView) findViewById(R.id.listView1);
String[] values = new String[] { "Android", "iPhone", "WindowsMobile", "Blackberry", "WebOS", "Ubuntu",
"Windows7", ... |
diff --git a/android/src/dk/napp/drawer/Drawer.java b/android/src/dk/napp/drawer/Drawer.java
index 4ffa52b..f07b87b 100644
--- a/android/src/dk/napp/drawer/Drawer.java
+++ b/android/src/dk/napp/drawer/Drawer.java
@@ -1,440 +1,439 @@
/**
* Copyright (c) 2010-2013 by Napp ApS
* www.napp.dk
* Author Mads Møller
*... | true | true | public void processProperties(KrollDict d)
{
if (d.containsKey(TiC.PROPERTY_ACTIVITY)) {
Object activityObject = d.get(TiC.PROPERTY_ACTIVITY);
ActivityProxy activityProxy = getProxy().getActivityProxy();
if (activityObject instanceof HashMap<?, ?> && activityProxy != null) {
@SuppressWarnings("unchecke... | public void processProperties(KrollDict d)
{
if (d.containsKey(TiC.PROPERTY_ACTIVITY)) {
Object activityObject = d.get(TiC.PROPERTY_ACTIVITY);
ActivityProxy activityProxy = getProxy().getActivityProxy();
if (activityObject instanceof HashMap<?, ?> && activityProxy != null) {
@SuppressWarnings("unchecke... |
diff --git a/src/main/java/RE-apache/Grep1.java b/src/main/java/RE-apache/Grep1.java
index bbb9ce94..ec2f8c0a 100644
--- a/src/main/java/RE-apache/Grep1.java
+++ b/src/main/java/RE-apache/Grep1.java
@@ -1,68 +1,68 @@
import RE;
import java.io.*;
/** A command-line grep-like program. No options, but takes a pattern... | true | true | public static void main(String argv[]) {
if (argv.length == 0) {
System.err.println("Usage: Grep pattern [filename]");
System.exit(1);
}
Grep1 pg = new Grep1(argv[0]);
if (argv.length == 1)
pg.process(new InputStreamReader(System.in), "(standard input", false);
else
for (int i=1; i<argv.... | public static void main(String argv[]) {
if (argv.length < 1) {
System.err.println("Usage: Grep pattern [filename]");
System.exit(1);
}
Grep1 pg = new Grep1(argv[0]);
if (argv.length == 1)
pg.process(new InputStreamReader(System.in), "(standard input", false);
else
for (int i=1; i<argv.l... |
diff --git a/core-client/src/test/java/org/glassfish/jersey/client/HttpUrlConnectorTest.java b/core-client/src/test/java/org/glassfish/jersey/client/HttpUrlConnectorTest.java
index b248e540f..a936cab11 100644
--- a/core-client/src/test/java/org/glassfish/jersey/client/HttpUrlConnectorTest.java
+++ b/core-client/src/tes... | false | true | protected HttpURLConnection wrapNoContentHttps(final HttpURLConnection result) {
if (result instanceof HttpsURLConnection){
return new HttpsURLConnection(result.getURL()) {
private HttpsURLConnection delegate=(HttpsURLConnection) result;
public String getHeaderFieldKey(int n) {
return delegate.getHe... | protected HttpURLConnection wrapNoContentHttps(final HttpURLConnection result) {
if (result instanceof HttpsURLConnection){
return new HttpsURLConnection(result.getURL()) {
private HttpsURLConnection delegate=(HttpsURLConnection) result;
public String getHeaderFieldKey(int n) {
return delegate.getHe... |
diff --git a/src/main/java/de/hd/cl/haas/distributedcrawl/util/SequenceFileDumper.java b/src/main/java/de/hd/cl/haas/distributedcrawl/util/SequenceFileDumper.java
index 6f2eef0..095ec41 100644
--- a/src/main/java/de/hd/cl/haas/distributedcrawl/util/SequenceFileDumper.java
+++ b/src/main/java/de/hd/cl/haas/distributedcr... | true | true | public static void main(String[] args) throws IOException {
if (args.length < 2) {
System.err.println("Please supply name of SequenceFile as first argument");
System.exit(1);
}
String uri = args[0];
Configuration conf = new Configuration();
FileSystem... | public static void main(String[] args) throws IOException {
if (args.length < 1) {
System.err.println("Please supply name of SequenceFile as first argument");
System.exit(1);
}
String uri = args[0];
Configuration conf = new Configuration();
FileSystem... |
diff --git a/src/com/savagedzen/szparts/activities/HAVSActivity.java b/src/com/savagedzen/szparts/activities/HAVSActivity.java
index c715078..48ec24b 100644
--- a/src/com/savagedzen/szparts/activities/HAVSActivity.java
+++ b/src/com/savagedzen/szparts/activities/HAVSActivity.java
@@ -1,275 +1,274 @@
/*
* Copyright (... | false | true | public boolean changeHAVS(String profile, String UV) {
ShellCommand cmd = new ShellCommand();
String filePath = "/system/etc/vdd_profiles/";
String fileTOrun = null;
String tmpProfile = null;
String tmpUV = null;
// Determins and sets short profile
if ("Savag... | public boolean changeHAVS(String profile, String UV) {
ShellCommand cmd = new ShellCommand();
String filePath = "/system/etc/vdd_profiles/";
String fileTOrun = null;
String tmpProfile = null;
String tmpUV = null;
// Determins and sets short profile
if ("Savag... |
diff --git a/sdk/src/com/scoreflex/Scoreflex.java b/sdk/src/com/scoreflex/Scoreflex.java
index 920818c..0bff298 100644
--- a/sdk/src/com/scoreflex/Scoreflex.java
+++ b/sdk/src/com/scoreflex/Scoreflex.java
@@ -1,1983 +1,1983 @@
/*
* Licensed to Scoreflex (www.scoreflex.com) under one
* or more contributor license a... | false | true | public static void initialize(Context context, final String clientId,
String clientSecret, boolean useSandbox) {
setNetworkAvailable(false);
sApplicationContext = context.getApplicationContext();
sClientId = clientId;
sClientSecret = clientSecret;
sBaseURL = useSandbox ? SANDBOX_API_URL : PRODUCTION_API_U... | public static void initialize(Context context, final String clientId,
String clientSecret, boolean useSandbox) {
setNetworkAvailable(false);
sApplicationContext = context.getApplicationContext();
sClientId = clientId;
sClientSecret = clientSecret;
sBaseURL = useSandbox ? SANDBOX_API_URL : PRODUCTION_API_U... |
diff --git a/src/ui/StatusCellRenderer.java b/src/ui/StatusCellRenderer.java
index d5cc761..3b9dcb9 100644
--- a/src/ui/StatusCellRenderer.java
+++ b/src/ui/StatusCellRenderer.java
@@ -1,62 +1,62 @@
package ui;
import java.awt.Component;
import java.awt.Font;
import javax.swing.GroupLayout;
import javax.swing.... | true | true | public Component getListCellRendererComponent(JList list, Object value, int index, boolean isSelected, boolean cellHasFoucs)
{
JPanel panel = new JPanel();
final Status tweet = (Status) value;
final User user = tweet.getUser();
JLabel icon = new JLabel();
JLabel name = new JLabel();
JLabel date = new JLa... | public Component getListCellRendererComponent(JList list, Object value, int index, boolean isSelected, boolean cellHasFoucs)
{
JPanel panel = new JPanel();
final Status tweet = (Status) value;
final User user = tweet.getUser();
JLabel icon = new JLabel();
JLabel name = new JLabel();
JLabel date = new JLa... |
diff --git a/H-sektionen/src/se/chalmers/h_sektionen/utils/LoadData.java b/H-sektionen/src/se/chalmers/h_sektionen/utils/LoadData.java
index c20d3e7..c13af8f 100644
--- a/H-sektionen/src/se/chalmers/h_sektionen/utils/LoadData.java
+++ b/H-sektionen/src/se/chalmers/h_sektionen/utils/LoadData.java
@@ -1,173 +1,174 @@
pa... | true | true | public static ArrayList<NewsItem> loadNews(int descending) throws JSONException{
//Get JSON string from server
String result = getJSON(Constants.NEWSFEED + descending);
List<NewsItem> posts = new ArrayList<NewsItem>();
//Parse JSON string
JSONObject json_obj = new JSONObject(result);
JSONArray ... | public static ArrayList<NewsItem> loadNews(int descending) throws JSONException{
//Get JSON string from server
String result = getJSON(Constants.NEWSFEED + descending);
List<NewsItem> posts = new ArrayList<NewsItem>();
//Parse JSON string
JSONObject json_obj = new JSONObject(result);
JSONArray ... |
diff --git a/SqueezeDBSystem/src/Online/Sum.java b/SqueezeDBSystem/src/Online/Sum.java
index 8b9b43d..535dcb3 100644
--- a/SqueezeDBSystem/src/Online/Sum.java
+++ b/SqueezeDBSystem/src/Online/Sum.java
@@ -1,37 +1,37 @@
package Online;
import java.util.*;
import java.util.Map.Entry;
import java.sql.*;
public cl... | false | true | public static int processSum(ResultSet result, int sample_size, int db_size) throws SQLException {
HashMap<Integer, Integer> frequencies = new HashMap<Integer, Integer>();
Integer k;
Integer v;
int sum = 0;
int s = 0;
while (result.next()) {
k = new Integer(result.getInt("value"));// sum first column
... | public static long processSum(ResultSet result, int sample_size, int db_size) throws SQLException {
HashMap<Integer, Integer> frequencies = new HashMap<Integer, Integer>();
Integer k;
Integer v;
long sum = 0;
int s = 0;
while (result.next()) {
k = new Integer(result.getInt("value"));// sum first colum... |
diff --git a/lang/pt_br/cogroo-addon/src/org/cogroo/addon/community/CommunityLogic.java b/lang/pt_br/cogroo-addon/src/org/cogroo/addon/community/CommunityLogic.java
index d19a49b..a30c7bd 100644
--- a/lang/pt_br/cogroo-addon/src/org/cogroo/addon/community/CommunityLogic.java
+++ b/lang/pt_br/cogroo-addon/src/org/cogroo... | true | true | public String createErrorReportXML() {
ErrorReport errorReport = new ErrorReport();
errorReport.setVersion(I18nLabelsLoader.ADDON_VERSION);
errorReport.setText(this.getText());
errorReport.setBadInterventions(new ErrorReport.BadInterventions());
errorReport.setOmissions(new... | public String createErrorReportXML() {
ErrorReport errorReport = new ErrorReport();
errorReport.setVersion(I18nLabelsLoader.ADDON_VERSION);
errorReport.setText(this.getText());
errorReport.setBadInterventions(new ErrorReport.BadInterventions());
errorReport.setOmissions(new... |
diff --git a/javasrc/src/org/ccnx/ccn/profiles/VersioningProfile.java b/javasrc/src/org/ccnx/ccn/profiles/VersioningProfile.java
index db7b0738c..f8a78fab5 100644
--- a/javasrc/src/org/ccnx/ccn/profiles/VersioningProfile.java
+++ b/javasrc/src/org/ccnx/ccn/profiles/VersioningProfile.java
@@ -1,823 +1,826 @@
/**
* Pa... | true | true | private static ContentObject getLatestVersion(ContentName startingVersion,
PublisherPublicKeyDigest publisher,
long timeout,
ContentVerifier verifier,
CCNHandle handle,
Long startingSegmentNumber,
boolean getFirstSegment) throws IOExc... | private static ContentObject getLatestVersion(ContentName startingVersion,
PublisherPublicKeyDigest publisher,
long timeout,
ContentVerifier verifier,
CCNHandle handle,
Long startingSegmentNumber,
boolean getFirstSegment) throws IOExc... |
diff --git a/src/main/java/hudson/plugins/git/converter/RemoteConfigConverter.java b/src/main/java/hudson/plugins/git/converter/RemoteConfigConverter.java
index e9a546a..6da5a57 100644
--- a/src/main/java/hudson/plugins/git/converter/RemoteConfigConverter.java
+++ b/src/main/java/hudson/plugins/git/converter/RemoteConf... | true | true | public RemoteConfig legacyUnmarshal(final HierarchicalStreamReader reader, final UnmarshallingContext context) {
final org.spearce.jgit.transport.RemoteConfig remoteConfig = new org.spearce.jgit.transport.RemoteConfig();
CustomObjectInputStream.StreamCallback callback = new LegacyInputStreamCallback... | public RemoteConfig legacyUnmarshal(final HierarchicalStreamReader reader, final UnmarshallingContext context) {
final org.spearce.jgit.transport.RemoteConfig remoteConfig = new org.spearce.jgit.transport.RemoteConfig();
CustomObjectInputStream.StreamCallback callback = new LegacyInputStreamCallback... |
diff --git a/spring-richclient/core/src/main/java/org/springframework/richclient/core/LabelInfo.java b/spring-richclient/core/src/main/java/org/springframework/richclient/core/LabelInfo.java
index 076dba5e..c2a9e9e6 100644
--- a/spring-richclient/core/src/main/java/org/springframework/richclient/core/LabelInfo.java
+++... | true | true | public static LabelInfo valueOf(final String labelDescriptor) {
if (logger.isDebugEnabled()) {
logger.debug("Creating a new LabelInfo from label descriptor [" + labelDescriptor + "]");
}
if (!StringUtils.hasText(labelDescriptor)) {
return BLANK_LABEL... | public static LabelInfo valueOf(final String labelDescriptor) {
if (logger.isDebugEnabled()) {
logger.debug("Creating a new LabelInfo from label descriptor [" + labelDescriptor + "]");
}
if (!StringUtils.hasText(labelDescriptor)) {
return BLANK_LABEL... |
diff --git a/wes-atmosphere2/src/main/java/io/github/flowersinthesand/wes/atmosphere/AtmosphereServerHttpExchange.java b/wes-atmosphere2/src/main/java/io/github/flowersinthesand/wes/atmosphere/AtmosphereServerHttpExchange.java
index e2fbcca..316c63a 100644
--- a/wes-atmosphere2/src/main/java/io/github/flowersinthesand/... | true | true | protected void readBody() {
try {
final ServletInputStream input = resource.getRequest().getInputStream();
// Supported as of Servlet 3.1
input.setReadListener(new ReadListener() {
List<String> chunks = new ArrayList<>();
@Override
public void onDataAvailable() throws IOException {
int byte... | protected void readBody() {
try {
final ServletInputStream input = resource.getRequest().getInputStream();
// Supported as of Servlet 3.1
input.setReadListener(new ReadListener() {
List<String> chunks = new ArrayList<>();
@Override
public void onDataAvailable() throws IOException {
int byte... |
diff --git a/audiobox.fm-core/src/test/java/fm/audiobox/core/test/MediaFilesTest.java b/audiobox.fm-core/src/test/java/fm/audiobox/core/test/MediaFilesTest.java
index 4193d89..4a276ec 100644
--- a/audiobox.fm-core/src/test/java/fm/audiobox/core/test/MediaFilesTest.java
+++ b/audiobox.fm-core/src/test/java/fm/audiobox/c... | true | true | public void mediaFilesShouldBeFullyPopulated() {
Playlists pls = user.getPlaylists();
MediaFiles mfs = null;
try {
pls.load(false);
Playlist pl = pls.getPlaylistByType( Playlists.Type.CloudPlaylist );
mfs = pl.getMediaFiles();
mfs.load(false);
} catch (ServiceException e) ... | public void mediaFilesShouldBeFullyPopulated() {
Playlists pls = user.getPlaylists();
MediaFiles mfs = null;
try {
pls.load(false);
Playlist pl = pls.getPlaylistByType( Playlists.Type.CloudPlaylist );
mfs = pl.getMediaFiles();
mfs.load(false);
} catch (ServiceException e) ... |
diff --git a/CPU-Simulation/src/main/java/ch/zhaw/lazari/cpu/impl/utils/BooleanArrayUtils.java b/CPU-Simulation/src/main/java/ch/zhaw/lazari/cpu/impl/utils/BooleanArrayUtils.java
index 7262a75..b47c473 100644
--- a/CPU-Simulation/src/main/java/ch/zhaw/lazari/cpu/impl/utils/BooleanArrayUtils.java
+++ b/CPU-Simulation/sr... | true | true | public static boolean[] fromInt(final int value, final int length) {
final boolean[] result = new boolean[length];
final boolean isNegative = (value < 0);
result[0] = isNegative;
int divResult = isNegative ? -value : value;
int index = length - 1;
// Calc value
while(divResult > 0) {
final int remains... | public static boolean[] fromInt(final int value, final int length) {
final boolean[] result = new boolean[length];
final boolean isNegative = (value < 0);
result[0] = isNegative;
int divResult = isNegative ? -value : value;
int index = length - 1;
// Calc value
while(divResult > 0) {
final int remains... |
diff --git a/src/main/java/com/alecgorge/minecraft/jsonapi/dynamic/APIWrapperMethods.java b/src/main/java/com/alecgorge/minecraft/jsonapi/dynamic/APIWrapperMethods.java
index ef2d5cd..573d189 100644
--- a/src/main/java/com/alecgorge/minecraft/jsonapi/dynamic/APIWrapperMethods.java
+++ b/src/main/java/com/alecgorge/mine... | true | true | public boolean chatWithName(String message, String name) {
if (fauxServer == null) {
try {
fauxServer = new ServerSocket(0);
fauxPort = fauxServer.getLocalPort();
} catch (IOException e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
}
try {
FauxPlayer player;
if (joi... | public boolean chatWithName(String message, String name) {
if (fauxServer == null) {
try {
fauxServer = new ServerSocket(0);
fauxPort = fauxServer.getLocalPort();
} catch (IOException e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
}
try {
FauxPlayer player;
if (joi... |
diff --git a/src/test/java/org/gsoft/openserv/repositories/loan/DefaultLoanProgramSettingsRepositoryTest.java b/src/test/java/org/gsoft/openserv/repositories/loan/DefaultLoanProgramSettingsRepositoryTest.java
index 9c8d8573..abb26842 100644
--- a/src/test/java/org/gsoft/openserv/repositories/loan/DefaultLoanProgramSett... | true | true | public void test() {
Date today = new Date();
DefaultLoanProgramSettings ltp = new DefaultLoanProgramSettings();
ltp.setDaysBeforeDueToBill(1);
ltp.setDaysLateForFee(1);
ltp.setEffectiveDate(today);
ltp.setEndDate(null);
ltp.setGraceMonths(1);
ltp.setLateFeeAmount(1000);
LoanProgram loanType = new Lo... | public void test() {
Date today = new Date();
DefaultLoanProgramSettings ltp = new DefaultLoanProgramSettings();
ltp.setDaysBeforeDueToBill(1);
ltp.setDaysLateForFee(1);
ltp.setEffectiveDate(today);
ltp.setGraceMonths(1);
ltp.setLateFeeAmount(1000);
LoanProgram loanType = new LoanProgram();
loanType.... |
diff --git a/openejb2/modules/core/src/java/org/openejb/server/ejbd/EJBObjectInputStream.java b/openejb2/modules/core/src/java/org/openejb/server/ejbd/EJBObjectInputStream.java
index 86dd6893c..b316be0d7 100755
--- a/openejb2/modules/core/src/java/org/openejb/server/ejbd/EJBObjectInputStream.java
+++ b/openejb2/modules... | false | true | protected Class resolveClass(ObjectStreamClass desc)
throws IOException, ClassNotFoundException {
if (ejbClassLoader == null) {
ClassLoader contextClassLoader = Thread.currentThread().getContextClassLoader();
return ClassLoading.loadClass(desc.getName(), contextClassLoader);
... | protected Class resolveClass(ObjectStreamClass desc)
throws IOException, ClassNotFoundException {
if (ejbClassLoader == null) {
//TODO is the TCCL every going to be set at this point?
ClassLoader contextClassLoader = Thread.currentThread().getContextClassLoader();
... |
diff --git a/src/test/java/org/mozilla/android/sync/net/test/TestSyncStorageRequest.java b/src/test/java/org/mozilla/android/sync/net/test/TestSyncStorageRequest.java
index 1f554dd57..a15491701 100644
--- a/src/test/java/org/mozilla/android/sync/net/test/TestSyncStorageRequest.java
+++ b/src/test/java/org/mozilla/andro... | false | true | public void handleSuccess(SyncStorageResponse res) {
assertTrue(res.wasSuccessful());
assertEquals(res.reason(), SyncStorageResponse.Reason.SUCCESS);
assertTrue(res.httpResponse().containsHeader("X-Weave-Timestamp"));
try {
System.out.println(res.httpResponse().getEntity().getContent... | public void handleSuccess(SyncStorageResponse res) {
assertTrue(res.wasSuccessful());
assertEquals(res.reason(), SyncStorageResponse.Reason.SUCCESS);
assertTrue(res.httpResponse().containsHeader("X-Weave-Timestamp"));
try {
System.out.println(res.httpResponse().getEntity().getContent... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.