Skip to content

Commit

Permalink
DEV: use modern Java idiom
Browse files Browse the repository at this point in the history
  • Loading branch information
joe-chacko committed Aug 13, 2024
1 parent f3b8fc3 commit f4825d2
Show file tree
Hide file tree
Showing 8 changed files with 301 additions and 458 deletions.
4 changes: 2 additions & 2 deletions testify/src/main/java/testify/annotation/ClassSource.java
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright 2023 IBM Corporation and others.
* Copyright 2024 IBM Corporation and others.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand Down Expand Up @@ -38,7 +38,7 @@
@Documented
@ArgumentsSource(ClassSource.Provider.class)
public @interface ClassSource {
Class[] value();
Class<?>[] value();
class Provider implements ArgumentsProvider, AnnotationConsumer<ClassSource> {
private static final String ANNO_NAME = '@' + ClassSource.class.getSimpleName();
Class<?>[] classes;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -549,7 +549,7 @@ private synchronized void processLocateReply(GIOPIncomingMessage msg) {
try {
IOR ior = IORHelper.read(in);
down.setLocationForward(ior, false);
if (REQ_OUT_LOG.isLoggable(FINE)) REQ_OUT_LOG.fine("Locate request forwarded to " + IORDump.PrintObjref(orbInstance_.getORB(), ior));
if (REQ_OUT_LOG.isLoggable(FINE)) REQ_OUT_LOG.fine("Locate request forwarded to " + IORDump.describeIor(orbInstance_.getORB(), ior));

} catch (SystemException ex) {
warned(REQ_OUT_LOG, ex, "An error occurred while reading a locate reply, possibly indicating "
Expand All @@ -563,7 +563,7 @@ private synchronized void processLocateReply(GIOPIncomingMessage msg) {
try {
IOR ior = IORHelper.read(in);
down.setLocationForward(ior, true);
if (REQ_OUT_LOG.isLoggable(FINE)) REQ_OUT_LOG.fine("Locate request forwarded to " + IORDump.PrintObjref(orbInstance_.getORB(), ior));
if (REQ_OUT_LOG.isLoggable(FINE)) REQ_OUT_LOG.fine("Locate request forwarded to " + IORDump.describeIor(orbInstance_.getORB(), ior));
} catch (SystemException ex) {
warned(REQ_OUT_LOG, ex,"An error occurred while reading a locate reply, possibly indicating "
+ "an interoperability problem. You may need to set the LocateRequestPolicy to false.");
Expand Down Expand Up @@ -885,7 +885,7 @@ public void upcallForward(Upcall upcall, IOR ior, boolean perm, ServiceContexts
ReplyStatusType_1_2 status = perm ? ReplyStatusType_1_2.LOCATION_FORWARD_PERM : ReplyStatusType_1_2.LOCATION_FORWARD;
try {
outgoing.writeReplyHeader(reqId, status, contexts);
if (REQ_IN_LOG.isLoggable(FINE)) REQ_IN_LOG.fine("Sending forward reply to " + IORDump.PrintObjref(orbInstance_.getORB(), ior));
if (REQ_IN_LOG.isLoggable(FINE)) REQ_IN_LOG.fine("Sending forward reply to " + IORDump.describeIor(orbInstance_.getORB(), ior));
IORHelper.write(out, ior);
} catch (SystemException ex) {
// Nothing may go wrong here, otherwise we might have a
Expand Down
Loading

0 comments on commit f4825d2

Please sign in to comment.