Skip to content

[PATCH] Fix @code typos in javadoc #26396

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions src/java.base/share/classes/javax/crypto/Cipher.java
Original file line number Diff line number Diff line change
Expand Up @@ -291,7 +291,7 @@ protected Cipher(CipherSpi cipherSpi,
}

/**
* Creates a {code Cipher} object. Called internally by {code NullCipher}.
* Creates a {@code Cipher} object. Called internally by {@code NullCipher}.
*
* @param cipherSpi the delegate
* @param transformation the transformation
Expand Down Expand Up @@ -2720,15 +2720,15 @@ public static final int getMaxAllowedKeyLength(String transformation)
}

/**
* Returns an {code AlgorithmParameterSpec} object which contains
* Returns an {@code AlgorithmParameterSpec} object which contains
* the maximum {@code Cipher} parameter value according to the
* jurisdiction policy file. If JCE unlimited strength jurisdiction
* policy files are installed or there is no maximum limit on the
* parameters for the specified transformation in the policy file,
* {@code null} will be returned.
*
* @param transformation the cipher transformation
* @return an {code AlgorithmParameterSpec} object which holds the maximum
* @return an {@code AlgorithmParameterSpec} object which holds the maximum
* value or {@code null}
* @throws NullPointerException if {@code transformation}
* is {@code null}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ public Extract extractOnly() {
*
* @implNote HKDF implementations will enforce that the length
* is not greater than 255 * HMAC length. HKDF implementations
* will also enforce that a {code null} info value is treated as
* will also enforce that a {@code null} info value is treated as
* zero-length byte array.
*
* @param info
Expand Down Expand Up @@ -261,7 +261,7 @@ static Builder ofExtract() {
* @implNote HKDF implementations will enforce that the length is
* not greater than 255 * HMAC length. Implementations will also
* enforce that the prk argument is at least as many bytes as the
* HMAC length. Implementations will also enforce that a {code null}
* HMAC length. Implementations will also enforce that a {@code null}
* info value is treated as zero-length byte array.
*
* @param prk
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright (c) 2024, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2024, 2025, 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
Expand Down Expand Up @@ -28,7 +28,7 @@
import java.io.FileDescriptor;

/**
* This proxy interface is required to allow access to @{code MappedMemoryUtils} methods from {@code ScopedMemoryAccess}.
* This proxy interface is required to allow access to {@code MappedMemoryUtils} methods from {@code ScopedMemoryAccess}.
* This allows to avoid pesky initialization issues in the middle of memory mapped scoped methods.
*/
public interface MappedMemoryUtilsProxy {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright (c) 2023, 2024, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2023, 2025, 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
Expand Down Expand Up @@ -102,7 +102,7 @@ static void doDowncall(MemorySegment cif, MemorySegment target, MemorySegment re
/**
* Wrapper for {@code ffi_prep_cif}
*
* @param returnType a pointer to an @{code ffi_type} describing the return type
* @param returnType a pointer to an {@code ffi_type} describing the return type
* @param numArgs the number of arguments
* @param paramTypes a pointer to an array of pointers, which each point to an {@code ffi_type} describing a
* parameter type
Expand All @@ -122,7 +122,7 @@ static MemorySegment prepCif(MemorySegment returnType, int numArgs, MemorySegmen
/**
* Wrapper for {@code ffi_prep_cif_var}. The variadic version of prep_cif
*
* @param returnType a pointer to an @{code ffi_type} describing the return type
* @param returnType a pointer to an {@code ffi_type} describing the return type
* @param numFixedArgs the number of fixed arguments
* @param numTotalArgs the number of total arguments
* @param paramTypes a pointer to an array of pointers, which each point to an {@code ffi_type} describing a
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ public final class CaseFolding {
* back-refs, string slice (sequences), single, family(char-property) and class range. Single and
* family may appears independently or within a class.
* <p>
* For loose/case-insensitive matching, the back-refs, slices and singles apply {code toUpperCase} and
* For loose/case-insensitive matching, the back-refs, slices and singles apply {@code toUpperCase} and
* {@code toLowerCase} to both the pattern and the input string. This effectively 'close' the class for
* matching.
* <p>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright (c) 1999, 2024, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 1999, 2025, 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
Expand Down Expand Up @@ -59,7 +59,7 @@ class NumericValueExp extends QueryEval implements ValueExp {
public NumericValueExp() {
}

/** Creates a new NumericValue representing the numeric literal @{code val}.*/
/** Creates a new NumericValue representing the numeric literal {@code val}.*/
NumericValueExp(Number val)
{
this.val = val;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright (c) 2011, 2024, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2011, 2025, 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
Expand Down Expand Up @@ -484,7 +484,7 @@ int getNumIndyEntries(HotSpotConstantPool constantPool) {

/**
* Resolves the details for invoking the bootstrap method associated with the
* {@code CONSTANT_Dynamic_info} or @{code CONSTANT_InvokeDynamic_info} entry at {@code cpi} in
* {@code CONSTANT_Dynamic_info} or {@code CONSTANT_InvokeDynamic_info} entry at {@code cpi} in
* {@code constant pool}.
*
* The return value encodes the details in an object array that is described by the pseudo Java
Expand Down Expand Up @@ -512,17 +512,17 @@ Object[] resolveBootstrapMethod(HotSpotConstantPool constantPool, int cpi) {

/**
* Gets the constant pool index of a static argument of a {@code CONSTANT_Dynamic_info} or
* @{code CONSTANT_InvokeDynamic_info} entry. Used when the list of static arguments in the
* {@code CONSTANT_InvokeDynamic_info} entry. Used when the list of static arguments in the
* {@link BootstrapMethodInvocation} is a {@code List<PrimitiveConstant>} of the form
* {{@code arg_count}, {@code pool_index}}, meaning the arguments are not already resolved and that
* the JDK has to lookup the arguments when they are needed. The {@code cpi} corresponds to
* {@code pool_index} and the {@code index} has to be smaller than {@code arg_count}.
*
* The behavior of this method is undefined if {@code cpi} does not denote an entry representing
* a {@code CONSTANT_Dynamic_info} or a @{code CONSTANT_InvokeDynamic_info}, or if the index
* a {@code CONSTANT_Dynamic_info} or a {@code CONSTANT_InvokeDynamic_info}, or if the index
* is out of bounds.
*
* @param cpi the index of a {@code CONSTANT_Dynamic_info} or @{code CONSTANT_InvokeDynamic_info} entry
* @param cpi the index of a {@code CONSTANT_Dynamic_info} or {@code CONSTANT_InvokeDynamic_info} entry
* @param index the index of the static argument in the list of static arguments
* @return the constant pool index associated with the static argument
*/
Expand Down