Skip to content

Commit da37b3b

Browse files
committed
do not export non-public types via public API
1 parent 212ce77 commit da37b3b

File tree

4 files changed

+8
-8
lines changed

4 files changed

+8
-8
lines changed

visualvm/libs.profiler/lib.profiler/src/org/graalvm/visualvm/lib/jfluid/server/Monitors.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -719,11 +719,11 @@ public synchronized void next() {
719719

720720
private static final boolean DEBUG = Boolean.getBoolean("org.graalvm.visualvm.lib.jfluid.server.Monitors");
721721
protected static Runtime runtime;
722-
protected static SurvGenAndThreadsMonitor stMonitor;
723722
protected static long[] generalMNums;
724723
protected static long[] gcRelTime;
725724
protected static long[] gcStartTimes;
726725
protected static long[] gcFinishTimes;
726+
private static SurvGenAndThreadsMonitor stMonitor;
727727
private static long startTimeMilis;
728728
private static long startTimeCounts;
729729
private static boolean threadsSamplingEnabled;

visualvm/libs.profiler/lib.profiler/src/org/graalvm/visualvm/lib/jfluid/server/ProfilerRuntimeCPUSampledInstr.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ void sample() {
5656
//~ Static fields/initializers -----------------------------------------------------------------------------------------------
5757

5858
protected static int samplingInterval = 10;
59-
protected static SamplingThread st;
59+
private static SamplingThread st;
6060

6161
//~ Methods ------------------------------------------------------------------------------------------------------------------
6262

visualvm/libs.profiler/lib.profiler/src/org/graalvm/visualvm/lib/jfluid/server/ProfilerRuntimeObjLiveness.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -162,8 +162,8 @@ private void rehash() {
162162
//~ Static fields/initializers -----------------------------------------------------------------------------------------------
163163

164164
protected static ReferenceQueue rq;
165-
protected static WeakRefSet objSet;
166-
protected static ReferenceManagerThread rmt;
165+
private static WeakRefSet objSet;
166+
private static ReferenceManagerThread rmt;
167167
protected static boolean runGCOnGetResults;
168168
protected static boolean objLivenessProfilingDisabled = true;
169169

@@ -207,7 +207,7 @@ public static void resetProfilerCollectors() {
207207
// numbers were reported after resetting the results, which he (rightfully so) considered wrong
208208
}
209209

210-
public static void signalObjGC(ProfilerRuntimeObjLivenessWeakRef wr) {
210+
static void signalObjGC(ProfilerRuntimeObjLivenessWeakRef wr) {
211211
long objectId = wr.objId;
212212
objSet.remove(wr);
213213
writeObjGCEvent(objectId);

visualvm/libs.profiler/profiler.heapwalker/src/org/graalvm/visualvm/lib/profiler/heapwalk/details/jdk/image/FieldAccessor.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ public FieldAccessor() {
4444
this(new InstanceBuilderRegistry());
4545
}
4646

47-
public FieldAccessor(InstanceBuilderRegistry registry) {
47+
FieldAccessor(InstanceBuilderRegistry registry) {
4848
this.registry = registry;
4949
}
5050

@@ -198,7 +198,7 @@ public Instance getInstance(Instance instance, String field, String clsName) thr
198198
return value;
199199
}
200200

201-
public <T> T build(Instance instance, String field, InstanceBuilder<T> builder, boolean allowNull)
201+
<T> T build(Instance instance, String field, InstanceBuilder<T> builder, boolean allowNull)
202202
throws InvalidFieldException {
203203
return builder.convert(this, get(instance, field, Instance.class, allowNull));
204204
}
@@ -247,7 +247,7 @@ public <T> T[] buildArray(Instance instance, String field, Class<T> type,
247247
* @param allowNull never return null, throw exception instead
248248
* @param allowNullValues returned array can contain nulls
249249
*/
250-
public <T> T[] buildArray(Instance instance, String field, InstanceBuilder<T> builder,
250+
<T> T[] buildArray(Instance instance, String field, InstanceBuilder<T> builder,
251251
boolean allowNull, boolean allowNullValues) throws InvalidFieldException {
252252
return buildArray(instance, field, builder.getType(), builder, allowNull, allowNullValues);
253253
}

0 commit comments

Comments
 (0)