8247901: Multiple conflicting @return for FlightRecorderMXBean

Reviewed-by: mgronlun
This commit is contained in:
Erik Gahlin 2020-06-22 09:44:32 +02:00
parent 3576a88369
commit 04adafb753

View File

@ -1,5 +1,5 @@
/*
* Copyright (c) 2016, 2019, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2016, 2020, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
@ -205,13 +205,11 @@ public interface FlightRecorderMXBean extends PlatformManagedObject {
* The caller must close the recording when access to the data is no longer
* needed.
*
* @return a snapshot of all available recording data, not {@code null}
* @return a unique ID that can be used for reading recording data
*
* @throws java.lang.SecurityException if a security manager exists and the
* caller does not have {@code ManagementPermission("control")}
*
* @return a unique ID that can be used for reading recording data.
*
* @see Recording
*/
public long takeSnapshot();