buggy_function stringlengths 1 391k | fixed_function stringlengths 0 392k |
|---|---|
private String performCall(String urlPattern, String param) throws Exception {
return HttpRequest.get("http://" + managementClient.getMgmtAddress() + ":8080/" + ARCHIVE_NAME + "/" + urlPattern + "?input=" + param, 10, SECONDS);
}
| private String performCall(String urlPattern, String param) throws Exception {
return HttpRequest.get(managementClient.getWebUri() + "/" + ARCHIVE_NAME + "/" + urlPattern + "?input=" + param, 10, SECONDS);
}
|
private String performCall(String urlPattern, String param) throws Exception {
return HttpRequest.get("http://" + managementClient.getMgmtAddress() + ":8080/" + ARCHIVE_NAME + "/" + urlPattern + "?input=" + param, 100, SECONDS);
}
| private String performCall(String urlPattern, String param) throws Exception {
return HttpRequest.get(managementClient.getWebUri() + "/" + ARCHIVE_NAME + "/" + urlPattern + "?input=" + param, 100, SECONDS);
}
|
private String performCall(String urlPattern, String param) throws Exception {
return HttpRequest.get("http://" + managementClient.getMgmtAddress() + ":8080/hibernate3_test/" + urlPattern + "?input=" + param, 10, SECONDS);
}
| private String performCall(String urlPattern, String param) throws Exception {
return HttpRequest.get(managementClient.getWebUri() + "/hibernate3_test/" + urlPattern + "?input=" + param, 10, SECONDS);
}
|
private String performCall(String urlPattern) throws Exception {
return HttpRequest.get("http://" + managementClient.getMgmtAddress() + ":8080/war-example/" + urlPattern, 5, TimeUnit.SECONDS);
}
| private String performCall(String urlPattern) throws Exception {
return HttpRequest.get(managementClient.getWebUri() + "/war-example/" + urlPattern, 5, TimeUnit.SECONDS);
}
|
private void assertServletAccess(String context) throws IOException {
// Check that we can access the servlet
URL servletURL = new URL("http://" + managementClient.getMgmtAddress() + ":8080/" + context);
BufferedReader br = new BufferedReader(new InputStreamReader(servletURL.openStream()));
... | private void assertServletAccess(String context) throws IOException {
// Check that we can access the servlet
URL servletURL = new URL(managementClient.getWebUri() + "/" + context);
BufferedReader br = new BufferedReader(new InputStreamReader(servletURL.openStream()));
String message... |
private String performCall(String urlPattern, String op) throws Exception {
return HttpRequest.get("http://" + managementClient.getMgmtAddress() + ":8080/test/" + urlPattern + "?op=" + op, 10, SECONDS);
}
| private String performCall(String urlPattern, String op) throws Exception {
return HttpRequest.get(managementClient.getWebUri() + "/test/" + urlPattern + "?op=" + op, 10, SECONDS);
}
|
protected void makeCall(String user, String pass, int expectedStatusCode) throws Exception {
DefaultHttpClient httpclient = new DefaultHttpClient();
try {
// test hitting programmatic login servlet
HttpGet httpget = new HttpGet("http://" + managementClient.getMgmtAddress() + ... | protected void makeCall(String user, String pass, int expectedStatusCode) throws Exception {
DefaultHttpClient httpclient = new DefaultHttpClient();
try {
// test hitting programmatic login servlet
HttpGet httpget = new HttpGet(managementClient.getWebUri() + "/" + getContextP... |
IllegalStateException viewNotFound(String viewClass, String ejbName);
/*
*
* * JBoss, Home of Professional Open Source.
* * Copyright 2011, Red Hat, Inc., and individual contributors
* * as indicated by the @author tags. See the copyright.txt file in the
* * distribution for a full listing of individual contr... | IllegalStateException viewNotFound(String viewClass, String ejbName);
/*
*
* * JBoss, Home of Professional Open Source.
* * Copyright 2011, Red Hat, Inc., and individual contributors
* * as indicated by the @author tags. See the copyright.txt file in the
* * distribution for a full listing of individual contr... |
public void testDistance() {
Vector2D start = new Vector2D(2, 2);
Vector2D end = new Vector2D(-2, -2);
Segment segment = new Segment(start, end, new Line(start, end));
// distance to center of segment
Assert.assertEquals(FastMath.sqrt(2), segment.distance(new Vector2D(1, -1)... | public void testDistance() {
Vector2D start = new Vector2D(2, 2);
Vector2D end = new Vector2D(-2, -2);
Segment segment = new Segment(start, end, new Line(start, end, 1.0e-10));
// distance to center of segment
Assert.assertEquals(FastMath.sqrt(2), segment.distance(new Vector... |
public Future<?> submit(TestRunnable task) throws NamingException {
final Principal principal = ejbContext.getCallerPrincipal();
logger.debugf("Principal: %s", principal);
task.setExpectedPrincipal(principal);
final ExecutorService executorService = Executors.newSingleThreadExecutor(... | public Future<?> submit(TestEJBRunnable task) throws NamingException {
final Principal principal = ejbContext.getCallerPrincipal();
logger.debugf("Principal: %s", principal);
task.setExpectedPrincipal(principal);
final ExecutorService executorService = Executors.newSingleThreadExecut... |
public Future<?> schedule(TestRunnable task, long delay, TimeUnit timeUnit) throws NamingException {
final Principal principal = ejbContext.getCallerPrincipal();
logger.debugf("Principal: %s", principal);
task.setExpectedPrincipal(principal);
return executorService.schedule(task, del... | public Future<?> schedule(TestEJBRunnable task, long delay, TimeUnit timeUnit) throws NamingException {
final Principal principal = ejbContext.getCallerPrincipal();
logger.debugf("Principal: %s", principal);
task.setExpectedPrincipal(principal);
return executorService.schedule(task, ... |
protected void boot(final BootContext context) throws ConfigurationPersistenceException {
final ServiceTarget serviceTarget = context.getServiceTarget();
try {
super.boot(configurationPersister.load()); // This parses the host.xml and invokes all ops
//Install the server inv... | protected void boot(final BootContext context) throws ConfigurationPersistenceException {
final ServiceTarget serviceTarget = context.getServiceTarget();
try {
super.boot(configurationPersister.load()); // This parses the host.xml and invokes all ops
//Install the server inv... |
public static void initOperations(final ManagementResourceRegistration root, final ContentRepository contentRepository,
final ExtensibleConfigurationPersister extensibleConfigurationPersister,
final ServerEnvironment serverEnvironment,
... | public static void initOperations(final ManagementResourceRegistration root, final ContentRepository contentRepository,
final ExtensibleConfigurationPersister extensibleConfigurationPersister,
final ServerEnvironment serverEnvironment,
... |
public void deploy(DeploymentPhaseContext phaseContext) throws DeploymentUnitProcessingException {
final DeploymentUnit deploymentUnit = phaseContext.getDeploymentUnit();
if (!DeploymentTypeMarker.isType(DeploymentType.WAR, deploymentUnit)) {
return;
}
if(JsfVersionMarke... | public void deploy(DeploymentPhaseContext phaseContext) throws DeploymentUnitProcessingException {
final DeploymentUnit deploymentUnit = phaseContext.getDeploymentUnit();
if (!DeploymentTypeMarker.isType(DeploymentType.WAR, deploymentUnit)) {
return;
}
if(JsfVersionMarke... |
public RequestConditionHolder getMatchingCondition(HttpServletRequest request) {
if (condition == null) {
return this;
}
RequestCondition<?> match = (RequestCondition<?>) condition.getMatchingCondition(request);
return new RequestConditionHolder(match);
}
| public RequestConditionHolder getMatchingCondition(HttpServletRequest request) {
if (condition == null) {
return this;
}
RequestCondition<?> match = (RequestCondition<?>) condition.getMatchingCondition(request);
return (match != null) ? new RequestConditionHolder(match) : null;
}
|
public void execute(OperationContext context, ModelNode operation) {
final ServiceName deploymentUnitServiceName = Services.deploymentUnitName(deploymentUnitName);
final ServiceRegistry serviceRegistry = context.getServiceRegistry(false);
final... | public void execute(OperationContext context, ModelNode operation) {
final ServiceName deploymentUnitServiceName = Services.deploymentUnitName(deploymentUnitName);
final ServiceRegistry serviceRegistry = context.getServiceRegistry(true);
final ... |
private boolean myOwnership(GlobalPartitionId id) {
int val = Math.abs(id.host.hashCode() + 23 * id.partition);
return val % _totalTasks == _taskIndex;
}
| private boolean myOwnership(GlobalPartitionId id) {
int val = id.host.hashCode() + 23 * id.partition;
return val % _totalTasks == _taskIndex;
}
|
public static Dfp computeLn(final Dfp a, final Dfp one, final Dfp two) {
int den = 1;
Dfp x = a.add(new Dfp(a.getField(), -1)).divide(a.add(one));
Dfp y = new Dfp(x);
Dfp num = new Dfp(x);
Dfp py = new Dfp(y);
for (int i = 0; i < 10000; i++) {
num = num.... | public static Dfp computeLn(final Dfp a, final Dfp one, final Dfp two) {
int den = 1;
Dfp x = a.add(new Dfp(a.getField(), -1)).divide(a.add(one));
Dfp y = new Dfp(x);
Dfp num = new Dfp(x);
Dfp py = new Dfp(y);
for (int i = 0; i < 10000; i++) {
num = num.... |
private long nextPoisson(double meanPoisson) {
final double pivot = 40.0d;
if (meanPoisson < pivot) {
double p = FastMath.exp(-meanPoisson);
long n = 0;
double r = 1.0d;
double rnd = 1.0d;
while (n < 1000 * meanPoisson) {
r... | private long nextPoisson(double meanPoisson) {
final double pivot = 40.0d;
if (meanPoisson < pivot) {
double p = FastMath.exp(-meanPoisson);
long n = 0;
double r = 1.0d;
double rnd = 1.0d;
while (n < 1000 * meanPoisson) {
r... |
private SaddlePointExpansion() {
super();
}
/**
* Compute the error of Stirling's series at the given value.
* <p>
* References:
* <ol>
* <li>Eric W. Weisstein. "Stirling's Series." From MathWorld--A Wolfram Web
* Resource. <a target="_blank"
* href="http://mathwo... | private SaddlePointExpansion() {
super();
}
/**
* Compute the error of Stirling's series at the given value.
* <p>
* References:
* <ol>
* <li>Eric W. Weisstein. "Stirling's Series." From MathWorld--A Wolfram Web
* Resource. <a target="_blank"
* href="http://mathwo... |
// arrays shared with the other private methods
final int solvedCols = FastMath.min(nR, nC);
lmDir = new double[nC];
lmPar = 0;
// local point
double delta = 0;
double xNorm = 0;
double[] diag = new double[nC];
double[] oldX = new d... | // arrays shared with the other private methods
final int solvedCols = FastMath.min(nR, nC);
lmDir = new double[nC];
lmPar = 0;
// local point
double delta = 0;
double xNorm = 0;
double[] diag = new double[nC];
double[] oldX = new d... |
public BigFraction(final double value) throws MathIllegalArgumentException {
if (Double.isNaN(value)) {
throw new MathIllegalArgumentException(LocalizedFormats.NAN_VALUE_CONVERSION);
}
if (Double.isInfinite(value)) {
throw new MathIllegalArgumentException(LocalizedFor... | public BigFraction(final double value) throws MathIllegalArgumentException {
if (Double.isNaN(value)) {
throw new MathIllegalArgumentException(LocalizedFormats.NAN_VALUE_CONVERSION);
}
if (Double.isInfinite(value)) {
throw new MathIllegalArgumentException(LocalizedFor... |
public StringBuffer format(Fraction fraction, StringBuffer toAppendTo,
FieldPosition pos) {
pos.setBeginIndex(0);
pos.setEndIndex(0);
int num = fraction.getNumerator();
int den = fraction.getDenominator();
int whole = num / den;
num = num % den;
... | public StringBuffer format(Fraction fraction, StringBuffer toAppendTo,
FieldPosition pos) {
pos.setBeginIndex(0);
pos.setEndIndex(0);
int num = fraction.getNumerator();
int den = fraction.getDenominator();
int whole = num / den;
num %= den;
if (... |
public int hashCode() {
int h = 3542;
for (final T a : data) {
h = h ^ a.hashCode();
}
return h;
}
| public int hashCode() {
int h = 3542;
for (final T a : data) {
h ^= a.hashCode();
}
return h;
}
|
public SingularValueDecomposition(final RealMatrix matrix) {
final double[][] A;
// "m" is always the largest dimension.
if (matrix.getRowDimension() < matrix.getColumnDimension()) {
transposed = true;
A = matrix.transpose().getData();
m = matrix.getColu... | public SingularValueDecomposition(final RealMatrix matrix) {
final double[][] A;
// "m" is always the largest dimension.
if (matrix.getRowDimension() < matrix.getColumnDimension()) {
transposed = true;
A = matrix.transpose().getData();
m = matrix.getColu... |
// arrays shared with the other private methods
solvedCols = FastMath.min(nR, nC);
diagR = new double[nC];
jacNorm = new double[nC];
beta = new double[nC];
permutation = new int[nC];
lmDir = new double[nC];
// local point
d... | // arrays shared with the other private methods
solvedCols = FastMath.min(nR, nC);
diagR = new double[nC];
jacNorm = new double[nC];
beta = new double[nC];
permutation = new int[nC];
lmDir = new double[nC];
// local point
d... |
// arrays shared with the other private methods
solvedCols = FastMath.min(nR, nC);
diagR = new double[nC];
jacNorm = new double[nC];
beta = new double[nC];
permutation = new int[nC];
lmDir = new double[nC];
// local point
d... | // arrays shared with the other private methods
solvedCols = FastMath.min(nR, nC);
diagR = new double[nC];
jacNorm = new double[nC];
beta = new double[nC];
permutation = new int[nC];
lmDir = new double[nC];
// local point
d... |
public static List<Integer> primeFactors(int n) {
final List<Integer> factors = new ArrayList<Integer>();
n = SmallPrimes.smallTrialDivision(n, factors);
if (1 == n) {
return factors;
}
if (SmallPrimes.millerRabinPrimeTest(n)) {
factors.add(n);
... | public static List<Integer> primeFactors(int n) {
final List<Integer> factors = new ArrayList<Integer>();
n = SmallPrimes.smallTrialDivision(n, factors);
if (1 == n) {
return factors;
}
if (SmallPrimes.millerRabinPrimeTest(n)) {
factors.add(n);
... |
public static int nextPrime(int n) {
if (n < 0) {
throw new MathIllegalArgumentException(LocalizedFormats.NUMBER_TOO_SMALL, n, 0);
}
if (n == 2) {
return 2;
}
n = n | 1;//make sure n is odd
if (n == 1) {
return 2;
}
... | public static int nextPrime(int n) {
if (n < 0) {
throw new MathIllegalArgumentException(LocalizedFormats.NUMBER_TOO_SMALL, n, 0);
}
if (n == 2) {
return 2;
}
n |= 1;//make sure n is odd
if (n == 1) {
return 2;
}
if... |
public void nextBytes(byte[] bytes) {
int bytesOut = 0;
while (bytesOut < bytes.length) {
int randInt = nextInt();
for (int i = 0; i < 3; i++) {
if ( i > 0) {
randInt = randInt >> 8;
}
bytes[bytesOut++] = (byte) randInt;... | public void nextBytes(byte[] bytes) {
int bytesOut = 0;
while (bytesOut < bytes.length) {
int randInt = nextInt();
for (int i = 0; i < 3; i++) {
if ( i > 0) {
randInt >>= 8;
}
bytes[bytesOut++] = (byte) randInt;
... |
public double[] nextVector() {
final double[] v = new double[dimension];
if (count == 0) {
count++;
return v;
}
// find the index c of the rightmost 0
int c = 1;
int value = count - 1;
while ((value & 1) == 1) {
value >>= 1... | public double[] nextVector() {
final double[] v = new double[dimension];
if (count == 0) {
count++;
return v;
}
// find the index c of the rightmost 0
int c = 1;
int value = count - 1;
while ((value & 1) == 1) {
value >>= 1... |
public double nextNormalizedDouble() {
// we need 2 uniform random numbers to calculate omega and phi
double omega = -FastMath.log(generator.nextDouble());
double phi = FastMath.PI * (generator.nextDouble() - 0.5);
// Normal distribution case (Box-Muller algorithm)
if (alpha... | public double nextNormalizedDouble() {
// we need 2 uniform random numbers to calculate omega and phi
double omega = -FastMath.log(generator.nextDouble());
double phi = FastMath.PI * (generator.nextDouble() - 0.5);
// Normal distribution case (Box-Muller algorithm)
if (alpha... |
public static double erfInv(final double x) {
// beware that the logarithm argument must be
// commputed as (1.0 - x) * (1.0 + x),
// it must NOT be simplified as 1.0 - x * x as this
// would induce rounding errors near the boundaries +/-1
double w = - FastMath.log((1.0 - x)... | public static double erfInv(final double x) {
// beware that the logarithm argument must be
// commputed as (1.0 - x) * (1.0 + x),
// it must NOT be simplified as 1.0 - x * x as this
// would induce rounding errors near the boundaries +/-1
double w = - FastMath.log((1.0 - x)... |
private void vmove(int from, int to) {
double d1;
double d2;
double X;
double d1new;
double d2new;
double cbar;
double sbar;
double Y;
int first;
int inc;
int m1;
int m2;
int mp1;
int pos;
boolean... | private void vmove(int from, int to) {
double d1;
double d2;
double X;
double d1new;
double d2new;
double cbar;
double sbar;
double Y;
int first;
int inc;
int m1;
int m2;
int mp1;
int pos;
boolean... |
public void testRoundDouble() {
double x = 1.234567890;
Assert.assertEquals(1.23, Precision.round(x, 2), 0.0);
Assert.assertEquals(1.235, Precision.round(x, 3), 0.0);
Assert.assertEquals(1.2346, Precision.round(x, 4), 0.0);
// JIRA MATH-151
Assert.assertEquals(39.25,... | public void testRoundDouble() {
double x = 1.234567890;
Assert.assertEquals(1.23, Precision.round(x, 2), 0.0);
Assert.assertEquals(1.235, Precision.round(x, 3), 0.0);
Assert.assertEquals(1.2346, Precision.round(x, 4), 0.0);
// JIRA MATH-151
Assert.assertEquals(39.25,... |
public <T> Set<ConstraintViolation<T>> validateValue(
Class<T> beanType, String propertyName, Object value, Class<?>... groups) {
return this.targetValidator.validateValue(beanType, propertyName, groups);
}
| public <T> Set<ConstraintViolation<T>> validateValue(
Class<T> beanType, String propertyName, Object value, Class<?>... groups) {
return this.targetValidator.validateValue(beanType, propertyName, value, groups);
}
|
private static String[] toString(Class<?>[] a) {
final String[] result = new String[a.length];
for (int i = 0; i < result.length; i++) {
result[i] = a[i].getName();
}
return result;
}
| private static String[] toString(Class<?>[] a) {
final String[] result = new String[a.length];
for (int i = 0; i < result.length; i++) {
result[i] = a[i].getCanonicalName();
}
return result;
}
|
public void contextInitialized(ServletContextEvent event) {
MyService service = new MyService();
SingletonService<String> singleton = new SingletonService<String>(service, MyService.SERVICE_NAME);
singleton.setElectionPolicy(new PreferredSingletonElectionPolicy(new NamePreference(PREFERRED_N... | public void contextInitialized(ServletContextEvent event) {
MyService service = new MyService();
SingletonService<String> singleton = new SingletonService<String>(service, MyService.SERVICE_NAME);
singleton.setElectionPolicy(new PreferredSingletonElectionPolicy(new NamePreference(PREFERRED_N... |
public void registerRemoteHost(final String hostName, final ManagementChannelHandler handler, final Transformers transformers, Long remoteConnectionId, DomainControllerRuntimeIgnoreTransformationEntry runtimeIgnoreTransformation) throws SlaveRegistrationException {
if (!hostControllerInfo.isMasterDomainCont... | public void registerRemoteHost(final String hostName, final ManagementChannelHandler handler, final Transformers transformers, Long remoteConnectionId, DomainControllerRuntimeIgnoreTransformationEntry runtimeIgnoreTransformation) throws SlaveRegistrationException {
if (!hostControllerInfo.isMasterDomainCont... |
private volatile ManagedServerBootConfiguration bootConfiguration;
ManagedServer(final String hostControllerName, final String serverName, final byte[] authKey,
final ProcessControllerClient processControllerClient, final InetSocketAddress managementSocket,
final Transformat... | private volatile ManagedServerBootConfiguration bootConfiguration;
ManagedServer(final String hostControllerName, final String serverName, final byte[] authKey,
final ProcessControllerClient processControllerClient, final InetSocketAddress managementSocket,
final Transformat... |
public void testOperations() throws Exception {
final KernelServices kernelServices = boot();
testAsyncHandler(kernelServices, null);
testAsyncHandler(kernelServices, PROFILE);
testConsoleHandler(kernelServices, null);
testConsoleHandler(kernelServices, PROFILE);
t... | public void testOperations() throws Exception {
final KernelServices kernelServices = boot();
testAsyncHandler(kernelServices, null);
testAsyncHandler(kernelServices, PROFILE);
testConsoleHandler(kernelServices, null);
testConsoleHandler(kernelServices, PROFILE);
t... |
public void execute(OperationContext context, ModelNode operation) {
ModelNode model = new ModelNode();
//Atttributes
model.get("attr1").set(1);
model.get("attr2").set(2);
context.createResource(PathAddress.EMPTY_ADDRESS).getModel().set(model);
... | public void execute(OperationContext context, ModelNode operation) {
ModelNode model = new ModelNode();
//Atttributes
model.get("attr1").set(1);
model.get("attr2").set(2);
context.readResourceForUpdate(PathAddress.EMPTY_ADDRESS).getModel().set(model)... |
public void execute(OperationContext context, ModelNode operation) throws OperationFailedException {
final ModelNode domainModel = operation.get(DOMAIN_MODEL);
// We get the model as a list of resources descriptions
if (!appliedExensions) {
for(final ModelNode resourceDescriptio... | public void execute(OperationContext context, ModelNode operation) throws OperationFailedException {
final ModelNode domainModel = operation.get(DOMAIN_MODEL);
// We get the model as a list of resources descriptions
if (!appliedExensions) {
for(final ModelNode resourceDescriptio... |
public ArchiveEntry getNextEntry() throws IOException {
java.util.zip.ZipEntry entry = input.getNextEntry();
if(entry == null) {
return null;
}
return (ArchiveEntry)new ZipEntry(entry);
}
| public ArchiveEntry getNextEntry() throws IOException {
java.util.zip.ZipEntry entry = input.getNextEntry();
if(entry == null) {
return null;
}
return (ArchiveEntry)new ZipArchiveEntry(entry);
}
|
public void putArchiveEntry(ArchiveEntry entry) throws IOException {
zipOut.putNextEntry((ZipEntry) entry);
}
| public void putArchiveEntry(ArchiveEntry entry) throws IOException {
zipOut.putNextEntry((ZipArchiveEntry) entry);
}
|
void listeningOnSocket(String address);
/*
* JBoss, Home of Professional Open Source.
* Copyright 2011, Red Hat, Inc., and individual contributors
* as indicated by the @author tags. See the copyright.txt file in the
* distribution for a full listing of individual contributors.
*
* This is free software; you can... | void listeningOnSocket(String address);
/*
* JBoss, Home of Professional Open Source.
* Copyright 2011, Red Hat, Inc., and individual contributors
* as indicated by the @author tags. See the copyright.txt file in the
* distribution for a full listing of individual contributors.
*
* This is free software; you can... |
protected void processTxAttr(final EJBComponentDescription ejbComponentDescription, final MethodIntf methodIntf, final Method method) {
if (this.getTransactionManagementType().equals(TransactionManagementType.BEAN)) {
// it's a BMT bean
return;
}
String className = m... | protected void processTxAttr(final EJBComponentDescription ejbComponentDescription, final MethodIntf methodIntf, final Method method) {
if (this.getTransactionManagementType().equals(TransactionManagementType.BEAN)) {
// it's a BMT bean
return;
}
String className = m... |
public static JavaArchive createDeployment() {
final JavaArchive jar = ShrinkWrap.create(JavaArchive.class, "stateless-ws-endpoint-example.jar");
jar.addPackage(SimpleStatelessWebserviceEndpointImpl.class.getPackage());
log.info(jar.toString(true));
return jar;
}
| public static JavaArchive createDeployment() {
final JavaArchive jar = ShrinkWrap.create(JavaArchive.class, "stateless-ws-endpoint-example.jar");
jar.addClasses(SimpleStatelessWebserviceEndpointIface.class, SimpleStatelessWebserviceEndpointImpl.class);
log.info(jar.toString(true));
r... |
public PropertiesAuthorizationResourceDefinition() {
super(PathElement.pathElement(ModelDescriptionConstants.AUTHORIZATION, ModelDescriptionConstants.PROPERTIES),
ControllerResolver.getResolver("core.management.security-realm.authorization.properties"),
new SecurityRealmChild... | public PropertiesAuthorizationResourceDefinition() {
super(PathElement.pathElement(ModelDescriptionConstants.AUTHORIZATION, ModelDescriptionConstants.PROPERTIES),
ControllerResolver.getResolver("core.management.security-realm.authorization.properties"),
new SecurityRealmChild... |
public void testTestUserSix() throws Exception {
verifyGroupMembership("TestUserSix", "passwordSix", "GroupSix", "GroupOne");
}
| public void testTestUserSix() throws Exception {
verifyGroupMembership("TestUserSix", "passwordSix", "GroupSix", "GroupTwo");
}
|
protected void setResult(OperationContext context, final String attributeName, final Service<?> service)
throws OperationFailedException {
BoundedQueueThreadPoolService bounded = (BoundedQueueThreadPoolService) service;
if(attributeName.equals(CommonAttributes.CURRENT_THREAD_COUNT)) {
... | protected void setResult(OperationContext context, final String attributeName, final Service<?> service)
throws OperationFailedException {
BoundedQueueThreadPoolService bounded = (BoundedQueueThreadPoolService) service;
if(attributeName.equals(CommonAttributes.CURRENT_THREAD_COUNT)) {
... |
public ManagedExecutorService(ExecutorService executor) {
if(executor == null) {
throw new IllegalArgumentException("Executor is null.");
}
this.executor = protectExecutor(executor);
}
| public ManagedExecutorService(ExecutorService executor) {
if(executor == null) {
throw ThreadsMessages.MESSAGES.nullExecutor();
}
this.executor = protectExecutor(executor);
}
|
.setValidator(new IntRangeValidator(0, Integer.MAX_VALUE, false, true)).setAllowExpression(true).setFlags(AttributeAccess.Flag.RESTART_ALL_SERVICES).build();
/*
* JBoss, Home of Professional Open Source.
* Copyright 2011, Red Hat, Inc., and individual contributors
* as indicated by the @author tags. See the copyrig... | .setValidator(new IntRangeValidator(0, Integer.MAX_VALUE, false, true)).setAllowExpression(true).setFlags(AttributeAccess.Flag.RESTART_ALL_SERVICES).build();
/*
* JBoss, Home of Professional Open Source.
* Copyright 2011, Red Hat, Inc., and individual contributors
* as indicated by the @author tags. See the copyrig... |
protected void setResult(OperationContext context, final String attributeName, final Service<?> service)
throws OperationFailedException {
final QueuelessThreadPoolService pool = (QueuelessThreadPoolService) service;
if(attributeName.equals(CommonAttributes.CURRENT_THREAD_COUNT)) {
... | protected void setResult(OperationContext context, final String attributeName, final Service<?> service)
throws OperationFailedException {
final QueuelessThreadPoolService pool = (QueuelessThreadPoolService) service;
if(attributeName.equals(CommonAttributes.CURRENT_THREAD_COUNT)) {
... |
protected void setResult(OperationContext context, final String attributeName, final Service<?> service)
throws OperationFailedException {
final ScheduledThreadPoolService pool = (ScheduledThreadPoolService) service;
if(attributeName.equals(CommonAttributes.ACTIVE_COUNT)) {
c... | protected void setResult(OperationContext context, final String attributeName, final Service<?> service)
throws OperationFailedException {
final ScheduledThreadPoolService pool = (ScheduledThreadPoolService) service;
if(attributeName.equals(CommonAttributes.ACTIVE_COUNT)) {
c... |
protected ServiceController<?> getService(final OperationContext context, final ModelNode operation)
throws OperationFailedException {
final String name = Util.getNameFromAddress(operation.require(OP_ADDR));
ServiceController<?> controller = context.getServiceRegistry(tru... | protected ServiceController<?> getService(final OperationContext context, final ModelNode operation)
throws OperationFailedException {
final String name = Util.getNameFromAddress(operation.require(OP_ADDR));
ServiceController<?> controller = context.getServiceRegistry(tru... |
public TimeSpec(final TimeUnit unit, final long duration) {
if (unit == null) {
throw new IllegalArgumentException("unit is null");
}
this.unit = unit;
this.duration = duration;
}
| public TimeSpec(final TimeUnit unit, final long duration) {
if (unit == null) {
throw ThreadsMessages.MESSAGES.nullUnit();
}
this.unit = unit;
this.duration = duration;
}
|
protected void setResult(OperationContext context, final String attributeName, final Service<?> service)
throws OperationFailedException {
final UnboundedQueueThreadPoolService pool = (UnboundedQueueThreadPoolService) service;
if(attributeName.equals(CommonAttributes.ACTIVE_COUNT)) {
... | protected void setResult(OperationContext context, final String attributeName, final Service<?> service)
throws OperationFailedException {
final UnboundedQueueThreadPoolService pool = (UnboundedQueueThreadPoolService) service;
if(attributeName.equals(CommonAttributes.ACTIVE_COUNT)) {
... |
public MathException() {
super();
this.pattern = null;
this.arguments = null;
}
| public MathException() {
super();
this.pattern = null;
this.arguments = new Object[0];
}
|
public ModelNode getModelDescription(Locale locale) {
return MessagingDescriptions.getBridgeAdd(locale);
}
static void addBridgeConfigs(final OperationContext context, final Configuration configuration, final ModelNode model) throws OperationFailedException {
if (model.hasDefined(CommonAtt... | public ModelNode getModelDescription(Locale locale) {
return MessagingDescriptions.getBridgeAdd(locale);
}
static void addBridgeConfigs(final OperationContext context, final Configuration configuration, final ModelNode model) throws OperationFailedException {
if (model.hasDefined(CommonAtt... |
public ModelNode getModelDescription(Locale locale) {
return MessagingDescriptions.getClusterConnectionAdd(locale);
}
static void addClusterConnectionConfigs(final OperationContext context, final Configuration configuration, final ModelNode model) throws OperationFailedException {
if (mode... | public ModelNode getModelDescription(Locale locale) {
return MessagingDescriptions.getClusterConnectionAdd(locale);
}
static void addClusterConnectionConfigs(final OperationContext context, final Configuration configuration, final ModelNode model) throws OperationFailedException {
if (mode... |
package org.springframework.web.socket;
/*
* Copyright 2002-2013 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LIC... | package org.springframework.web.socket;
/*
* Copyright 2002-2013 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LIC... |
package org.springframework.web.socket.client;
/*
* Copyright 2002-2013 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/... | package org.springframework.web.socket.client;
/*
* Copyright 2002-2013 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/... |
package org.springframework.web.socket;
/*
* Copyright 2002-2013 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/license... | package org.springframework.web.socket;
/*
* Copyright 2002-2013 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/license... |
package org.springframework.web.socket.server;
/*
* Copyright 2002-2013 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licen... | package org.springframework.web.socket.server;
/*
* Copyright 2002-2013 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licen... |
package org.springframework.web.socket.server.support;
/*
* Copyright 2002-2013 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.o... | package org.springframework.web.socket.server.support;
/*
* Copyright 2002-2013 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.o... |
package org.springframework.web.socket.sockjs;
/*
* Copyright 2002-2013 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licen... | package org.springframework.web.socket.sockjs;
/*
* Copyright 2002-2013 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licen... |
public int getWindowSize() {
return windowSize;
}
}
| public synchronized int getWindowSize() {
return windowSize;
}
}
|
protected OperationFailedException createFailureMessage(final String description) {
ModelNode failure = new ModelNode().set(description);
return new OperationFailedException(failure);
}
| protected void updateHandlersForUnassign(final AttributeDefinition handlerAttribute, final ModelNode operation, final ModelNode model) throws OperationFailedException {
final String handlerName = getHandlerName(operation);
if (handlerExists(handlerName, handlerAttribute, model)) {
// Get... |
public Object processInvocation(InterceptorContext context) throws Exception {
StatefulSessionComponent component = getComponent(context, StatefulSessionComponent.class);
// TODO: this is a contract with the client interceptor
SessionID sessionId = (SessionID) context.getPrivateData(Stateful... | public Object processInvocation(InterceptorContext context) throws Exception {
StatefulSessionComponent component = getComponent(context, StatefulSessionComponent.class);
// TODO: this is a contract with the client interceptor
SessionID sessionId = (SessionID) context.getPrivateData(SessionI... |
public Object processInvocation(final InterceptorContext context) throws Exception {
SessionID sessionId = (SessionID) context.getPrivateData(StatefulContextIdKey.INSTANCE);
return new StatefulSerializedProxy(serviceName, sessionId);
}
| public Object processInvocation(final InterceptorContext context) throws Exception {
SessionID sessionId = (SessionID) context.getPrivateData(SessionID.SESSION_ID_KEY);
return new StatefulSerializedProxy(serviceName, sessionId);
}
|
RealMatrix getCovariance(double minSingularValue);
/*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apac... | RealMatrix getCovariance(double minSingularValue);
/*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apac... |
protected static final SimpleAttributeDefinition ENABLED = new SimpleAttributeDefinitionBuilder(Constants.ENABLED, ModelType.BOOLEAN)
.setAllowNull(true)
.setFlags(AttributeAccess.Flag.RESTART_ALL_SERVICES)
.setDefaultValue(new ModelNode(true))
.setAllowExpression(tru... | protected static final SimpleAttributeDefinition ENABLED = new SimpleAttributeDefinitionBuilder(Constants.ENABLED, ModelType.BOOLEAN)
.setAllowNull(true)
.setFlags(AttributeAccess.Flag.RESTART_ALL_SERVICES)
.setDefaultValue(new ModelNode(true))
.setAllowExpression(tru... |
public void deploy(final DeploymentPhaseContext phaseContext) throws DeploymentUnitProcessingException {
DeploymentUnit depUnit = phaseContext.getDeploymentUnit();
XBundle bundle = depUnit.getAttachment(OSGiConstants.BUNDLE_KEY);
if (bundle == null || bundle.isFragment() || !bundle.isResolve... | public void deploy(final DeploymentPhaseContext phaseContext) throws DeploymentUnitProcessingException {
DeploymentUnit depUnit = phaseContext.getDeploymentUnit();
XBundle bundle = depUnit.getAttachment(OSGiConstants.BUNDLE_KEY);
if (bundle == null || bundle.isFragment())
return;... |
public void open(Map stormConf, TopologyContext context,
SpoutOutputCollector collector) {
_process = new ShellProcess(_command);
_collector = collector;
try {
Number subpid = _process.launch(stormConf, context);
LOG.info("Launched subprocess wit... | public void open(Map stormConf, TopologyContext context,
SpoutOutputCollector collector) {
_process = new ShellProcess(_command);
_collector = collector;
try {
Number subpid = _process.launch(stormConf, context);
LOG.info("Launched subprocess wit... |
public void execute(OperationContext context, ModelNode operation) throws OperationFailedException {
final ImmutableManagementResourceRegistration registry = context.getResourceRegistration();
Set<String> childTypes = registry.getChildNames(PathAddress.EMPTY_ADDRESS);
final M... | public void execute(OperationContext context, ModelNode operation) throws OperationFailedException {
final ImmutableManagementResourceRegistration registry = context.getResourceRegistration();
Set<String> childTypes = new TreeSet<String>(registry.getChildNames(PathAddress.EMPTY_ADDRESS))... |
public synchronized void start(StartContext context) throws StartException {
log.debugf("Starting Mod_cluster Extension");
config = new ModClusterConfig();
// Set the configuration.
final ModelNode proxyconf = modelconf.get(CommonAttributes.PROXY_CONF);
final ModelNode httpd... | public synchronized void start(StartContext context) throws StartException {
log.debugf("Starting Mod_cluster Extension");
config = new ModClusterConfig();
// Set the configuration.
final ModelNode proxyconf = modelconf.get(CommonAttributes.PROXY_CONF);
final ModelNode httpd... |
public void ack(Object msgId) {
TransactionAttempt tx = (TransactionAttempt) msgId;
TransactionStatus status = _activeTx.get(tx.getTransactionId());
if(tx.equals(status.attempt)) {
if(status.status==AttemptStatus.PROCESSING) {
status.status = AttemptStatus.PROCESS... | public void ack(Object msgId) {
TransactionAttempt tx = (TransactionAttempt) msgId;
TransactionStatus status = _activeTx.get(tx.getTransactionId());
if(status!=null && tx.equals(status.attempt)) {
if(status.status==AttemptStatus.PROCESSING) {
status.status = Attem... |
public synchronized void start(StartContext context) throws StartException {
final SocketBinding binding = this.binding.getValue();
final InetSocketAddress address = binding.getSocketAddress();
final Executor executor = this.executor.getOptionalValue();
try {
// Create co... | public synchronized void start(StartContext context) throws StartException {
final SocketBinding binding = this.binding.getValue();
final InetSocketAddress address = binding.getSocketAddress();
final Executor executor = this.executor.getOptionalValue();
try {
// Create co... |
protected <P> void applyUpdate(final UpdateContext updateContext, final UpdateResultHandler<? super Void, P> resultHandler, final P param) {
final BatchBuilder batchBuilder = updateContext.getBatchBuilder();
batchBuilder.addServiceValueIfNotExist(DeploymentChainProviderService.SERVICE_NAME, new Depl... | protected <P> void applyUpdate(final UpdateContext updateContext, final UpdateResultHandler<? super Void, P> resultHandler, final P param) {
final BatchBuilder batchBuilder = updateContext.getBatchBuilder();
batchBuilder.addServiceValueIfNotExist(DeploymentChainProviderService.SERVICE_NAME, new Depl... |
protected int writeTagContent(TagWriter tagWriter) throws JspException {
tagWriter.startTag("select");
writeDefaultAttributes(tagWriter);
if (isMultiple()) {
tagWriter.writeAttribute("multiple", "multiple");
}
tagWriter.writeOptionalAttributeValue("size", getDisplayString(evaluate("size", getSize())));
... | protected int writeTagContent(TagWriter tagWriter) throws JspException {
tagWriter.startTag("select");
writeDefaultAttributes(tagWriter);
if (isMultiple()) {
tagWriter.writeAttribute("multiple", "multiple");
}
tagWriter.writeOptionalAttributeValue("size", getDisplayString(evaluate("size", getSize())));
... |
Class<? extends ServerSetupTask>[] value();
package org.jboss.as.arquillian.api;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;
/**
* Annotation that can be applied to an arquillian test to allow for se... | Class<? extends ServerSetupTask>[] value();
package org.jboss.as.arquillian.api;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;
/**
* Annotation that can be applied to an arquillian test to allow for se... |
public void testWithSubReport() throws Exception {
if (!canCompileReport) {
return;
}
Map model = getModel();
model.put("SubReportData", getProductData());
Properties subReports = new Properties();
subReports.put("ProductsSubReport", "org/springframework/ui/jasperreports/subReportChild.jrxml");
Abs... | public void testWithSubReport() throws Exception {
if (!canCompileReport) {
return;
}
Map model = getModel();
model.put("SubReportData", getProductData());
Properties subReports = new Properties();
subReports.put("ProductsSubReport", "/org/springframework/ui/jasperreports/subReportChild.jrxml");
Ab... |
private void setViewProperties(AbstractJasperReportsView view) {
view.setUrl("org/springframework/ui/jasperreports/DataSourceReport.jasper");
StaticWebApplicationContext ac = new StaticWebApplicationContext();
ac.setServletContext(new MockServletContext());
ac.addMessage("page", Locale.GERMAN, "MeineSeite");
... | private void setViewProperties(AbstractJasperReportsView view) {
view.setUrl("/org/springframework/ui/jasperreports/DataSourceReport.jasper");
StaticWebApplicationContext ac = new StaticWebApplicationContext();
ac.setServletContext(new MockServletContext());
ac.addMessage("page", Locale.GERMAN, "MeineSeite");
... |
public Object clone() {
try {
StrTokenizer cloned = (StrTokenizer) super.clone();
if (cloned.chars != null) {
cloned.chars = cloned.chars;
}
cloned.reset();
return cloned;
} catch (CloneNotSupportedException ex) {
... | public Object clone() {
try {
StrTokenizer cloned = (StrTokenizer) super.clone();
if (cloned.chars != null) {
cloned.chars = (char[]) cloned.chars.clone();
}
cloned.reset();
return cloned;
} catch (CloneNotSupportedExceptio... |
public ModelNode getModelDescription(Locale locale) {
return DeploymentDescription.getDeployDeploymentOperation(locale);
}
| public ModelNode getModelDescription(Locale locale) {
return DeploymentDescription.getRedeployDeploymentOperation(locale);
}
|
public ModelNode getModelDescription(Locale locale) {
return DeploymentDescription.getDeployDeploymentOperation(locale);
}
| public ModelNode getModelDescription(Locale locale) {
return DeploymentDescription.getUndeployDeploymentOperation(locale);
}
|
public void execute(final PatchingContext context) throws IOException {
final InputStream is = context.getLoader().openContentStream(item);
try {
// Replace the file
final byte[] hash = copy(is, target);
final MiscContentItem backupItem = new MiscContentItem(item... | public void execute(final PatchingContext context) throws IOException {
final InputStream is = context.getLoader().openContentStream(item);
try {
// Replace the file
final byte[] hash = PatchUtils.copy(is, target);
final MiscContentItem backupItem = new MiscConte... |
String STARTLEVEL = "start";
/*
* JBoss, Home of Professional Open Source.
* Copyright 2011, Red Hat, Inc., and individual contributors
* as indicated by the @author tags. See the copyright.txt file in the
* distribution for a full listing of individual contributors.
*
* This is free software; you can redistribu... | String STARTLEVEL = "start";
/*
* JBoss, Home of Professional Open Source.
* Copyright 2011, Red Hat, Inc., and individual contributors
* as indicated by the @author tags. See the copyright.txt file in the
* distribution for a full listing of individual contributors.
*
* This is free software; you can redistribu... |
public TarArchiveEntry(String name, byte linkFlag) {
this(name, linkFlag, false);
}
/**
* Construct an entry with a name and a link flag.
*
* @param name the entry name
| public TarArchiveEntry(String name, byte linkFlag) {
this(name, linkFlag, false);
}
/**
* Construct an entry with a name and a link flag.
s *
* @param name the entry name
|
public MockServerManagerEnvironment(boolean isRestart) throws Exception{
super(new Properties(), false, System.in, System.out, System.err, "Test", InetAddress.getLocalHost(), 0, InetAddress.getLocalHost(), 0);
}
}
| public MockServerManagerEnvironment(boolean isRestart) throws Exception{
super(new Properties(), false, System.in, System.out, System.err, "Test", InetAddress.getLocalHost(), 0, InetAddress.getLocalHost(), 0, null);
}
}
|
private static void testCSVLexer(final boolean newToken, String test) throws Exception {
Token token = new Token();
String dynamic = "";
for (int i = 0; i < max; i++) {
final ExtendedBufferedReader input = new ExtendedBufferedReader(getReader());
Lexer lexer = null;
... | private static void testCSVLexer(final boolean newToken, String test) throws Exception {
Token token = new Token();
String dynamic = "";
for (int i = 0; i < max; i++) {
final ExtendedBufferedReader input = new ExtendedBufferedReader(getReader());
Lexer lexer = null;
... |
public AS7DataSourceDeployer getDeployer() throws ValidateException {
return new AS7DataSourceDeployer(dataSourceConfig.getValue().getUnModifiableInstance(), dataSourceConfig.getValue().getProfile());
}
| public AS7DataSourceDeployer getDeployer() throws ValidateException {
return new AS7DataSourceDeployer(dataSourceConfig.getValue().getUnModifiableInstance());
}
|
public void registerAttributes(ManagementResourceRegistration resourceRegistration) {
ReloadRequiredWriteAttributeHandler handler = new ReloadRequiredWriteAttributeHandler(ATTRIBUTES);
for (AttributeDefinition attribute: ATTRIBUTES) {
resourceRegistration.registerReadOnlyAttribute(attrib... | public void registerAttributes(ManagementResourceRegistration resourceRegistration) {
ReloadRequiredWriteAttributeHandler handler = new ReloadRequiredWriteAttributeHandler(ATTRIBUTES);
for (AttributeDefinition attribute: ATTRIBUTES) {
resourceRegistration.registerReadWriteAttribute(attri... |
public void testShutdownMultipleTimes() throws InterruptedException {
ScheduledExecutorService service = EasyMock
.createMock(ScheduledExecutorService.class);
ScheduledFuture<?> future = EasyMock.createMock(ScheduledFuture.class);
prepareStartTimer(service, future);
E... | public void testShutdownMultipleTimes() throws InterruptedException {
ScheduledExecutorService service = EasyMock
.createMock(ScheduledExecutorService.class);
ScheduledFuture<?> future = EasyMock.createMock(ScheduledFuture.class);
prepareStartTimer(service, future);
E... |
public String getLocalizedString(final Locale locale) {
try {
final String path = LocalizedFormats.class.getName().replaceAll("\\.", "/");
ResourceBundle bundle =
ResourceBundle.getBundle("assets/" + path, locale);
if (bundle.getLocale().getLanguage().... | public String getLocalizedString(final Locale locale) {
try {
final String path = LocalizedFormats.class.getName().replaceAll("\\.", "/");
ResourceBundle bundle =
ResourceBundle.getBundle("assets/" + path, locale);
if (bundle.getLocale().getLanguage().... |
protected void start(final double t0, final double[] y0, final double t)
throws DimensionMismatchException, NumberIsTooSmallException,
MaxCountExceededException, NoBracketingException {
// make sure NO user event nor user step handler is triggered,
// this is the task of the ... | protected void start(final double t0, final double[] y0, final double t)
throws DimensionMismatchException, NumberIsTooSmallException,
MaxCountExceededException, NoBracketingException {
// make sure NO user event nor user step handler is triggered,
// this is the task of the ... |
public void resetReplayFile() throws IOException {
if (filePointer != null) {
try {
filePointer.close();
filePointer = null;
} catch (IOException ex) {
// ignore
}
}
filePointer = new BufferedReader(new Input... | public void resetReplayFile() throws IOException {
if (filePointer != null) {
try {
filePointer.close();
filePointer = null;
} catch (IOException ex) { // NOPMD
// ignore
}
}
filePointer = new BufferedReader(... |
public long getCount(Comparable<?> v) {
if (v instanceof Integer) {
return getCount(((Integer) v).longValue());
}
long result = 0;
try {
Long count = freqTable.get(v);
if (count != null) {
result = count.longValue();
}
... | public long getCount(Comparable<?> v) {
if (v instanceof Integer) {
return getCount(((Integer) v).longValue());
}
long result = 0;
try {
Long count = freqTable.get(v);
if (count != null) {
result = count.longValue();
}
... |
public void testMessageNumber() {
Assert.assertEquals(320, LocalizedFormats.values().length);
}
| public void testMessageNumber() {
Assert.assertEquals(322, LocalizedFormats.values().length);
}
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.