@Test public void toString_WhenNameDisabled() { ReplicantTestUtil.disableNames(); final RequestEntry e = new RequestEntry( 123, null, false ); assertEquals( e.toString(), "replicant.RequestEntry@" + Integer.toHexString( System.identityHashCode( e ) ) ); }
@Override public String toString() { if ( Replicant.areNamesEnabled() ) { return "Request(" + getName() + ")[Id=" + _requestId + "]"; } else { return super.toString(); } }
RequestEntry { @Override public String toString() { if ( Replicant.areNamesEnabled() ) { return "Request(" + getName() + ")[Id=" + _requestId + "]"; } else { return super.toString(); } } }
RequestEntry { @Override public String toString() { if ( Replicant.areNamesEnabled() ) { return "Request(" + getName() + ")[Id=" + _requestId + "]"; } else { return super.toString(); } } RequestEntry( final int requestId, @Nullable final String name, final boolean syncRequest ); }
RequestEntry { @Override public String toString() { if ( Replicant.areNamesEnabled() ) { return "Request(" + getName() + ")[Id=" + _requestId + "]"; } else { return super.toString(); } } RequestEntry( final int requestId, @Nullable final String name, final boolean syncRequest ); @Override String toString(); }
RequestEntry { @Override public String toString() { if ( Replicant.areNamesEnabled() ) { return "Request(" + getName() + ")[Id=" + _requestId + "]"; } else { return super.toString(); } } RequestEntry( final int requestId, @Nullable final String name, final boolean syncRequest ); @Override String toString();  }