mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-27 23:04:50 +02:00
8231186: Replace html tag <code>foo</code> with javadoc tag {@code foo} in java.base
Minor coding style update of javadoc tag in any file in java.base Reviewed-by: bchristi, lancea
This commit is contained in:
parent
13d0bac294
commit
d15a57b842
139 changed files with 3499 additions and 3499 deletions
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* Copyright (c) 1994, 2013, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 1994, 2019, 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
|
||||
|
@ -26,23 +26,23 @@
|
|||
package java.lang;
|
||||
|
||||
/**
|
||||
* The <code>Runnable</code> interface should be implemented by any
|
||||
* The {@code Runnable} interface should be implemented by any
|
||||
* class whose instances are intended to be executed by a thread. The
|
||||
* class must define a method of no arguments called <code>run</code>.
|
||||
* class must define a method of no arguments called {@code run}.
|
||||
* <p>
|
||||
* This interface is designed to provide a common protocol for objects that
|
||||
* wish to execute code while they are active. For example,
|
||||
* <code>Runnable</code> is implemented by class <code>Thread</code>.
|
||||
* {@code Runnable} is implemented by class {@code Thread}.
|
||||
* Being active simply means that a thread has been started and has not
|
||||
* yet been stopped.
|
||||
* <p>
|
||||
* In addition, <code>Runnable</code> provides the means for a class to be
|
||||
* active while not subclassing <code>Thread</code>. A class that implements
|
||||
* <code>Runnable</code> can run without subclassing <code>Thread</code>
|
||||
* by instantiating a <code>Thread</code> instance and passing itself in
|
||||
* as the target. In most cases, the <code>Runnable</code> interface should
|
||||
* be used if you are only planning to override the <code>run()</code>
|
||||
* method and no other <code>Thread</code> methods.
|
||||
* In addition, {@code Runnable} provides the means for a class to be
|
||||
* active while not subclassing {@code Thread}. A class that implements
|
||||
* {@code Runnable} can run without subclassing {@code Thread}
|
||||
* by instantiating a {@code Thread} instance and passing itself in
|
||||
* as the target. In most cases, the {@code Runnable} interface should
|
||||
* be used if you are only planning to override the {@code run()}
|
||||
* method and no other {@code Thread} methods.
|
||||
* This is important because classes should not be subclassed
|
||||
* unless the programmer intends on modifying or enhancing the fundamental
|
||||
* behavior of the class.
|
||||
|
@ -55,12 +55,12 @@ package java.lang;
|
|||
@FunctionalInterface
|
||||
public interface Runnable {
|
||||
/**
|
||||
* When an object implementing interface <code>Runnable</code> is used
|
||||
* When an object implementing interface {@code Runnable} is used
|
||||
* to create a thread, starting the thread causes the object's
|
||||
* <code>run</code> method to be called in that separately executing
|
||||
* {@code run} method to be called in that separately executing
|
||||
* thread.
|
||||
* <p>
|
||||
* The general contract of the method <code>run</code> is that it may
|
||||
* The general contract of the method {@code run} is that it may
|
||||
* take any action whatsoever.
|
||||
*
|
||||
* @see java.lang.Thread#run()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue