From a7d5e3e38c0a3056d67d4251219ef7021053e1aa Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Yann=20C=C3=A9bron?= Date: Wed, 26 Jun 2024 13:46:17 +0200 Subject: [PATCH] [projectModel] SdkAdditionalData: javadoc cleanup GitOrigin-RevId: b1d1c12862d7f140f1054981f2b479bb1ff302e2 --- .../projectRoots/SdkAdditionalData.java | 27 ++++++++++--------- 1 file changed, 15 insertions(+), 12 deletions(-) diff --git a/platform/projectModel-api/src/com/intellij/openapi/projectRoots/SdkAdditionalData.java b/platform/projectModel-api/src/com/intellij/openapi/projectRoots/SdkAdditionalData.java index 115d21162acd..be60e1b5da1d 100644 --- a/platform/projectModel-api/src/com/intellij/openapi/projectRoots/SdkAdditionalData.java +++ b/platform/projectModel-api/src/com/intellij/openapi/projectRoots/SdkAdditionalData.java @@ -2,27 +2,30 @@ package com.intellij.openapi.projectRoots; /** - * The `SdkAdditionalData` interface represents additional data associated with an SDK. - * This interface should be implemented by classes that need to provide additional data for an SDK. + * Represents additional data associated with an SDK. + * Should be implemented by classes that need to provide additional data for an {@link Sdk}. *

- * It's possible to create an object from scratch or update it via [SdkModificator]. Changing already - * atached to the SDK object outside of the [SdkModificator] is prohibited to catch all plases where - * you have mutations outside the modificator, implement [markAsCommited] or use [SdkAdditionalDataBase] - * as a base class for your class and add [SdkAdditionalDataBase#assertWritable()] to all your setter - * methods. + * It's possible to create an object from scratch or update it via {@link SdkModificator}. + * Changing an instance already attached to the SDK outside of the {@code SdkModificator} is prohibited + * to catch all places where state is changed outside the modificator. + *

+ * Implement {@link #markAsCommited()} or use {@link com.intellij.openapi.projectRoots.impl.SdkAdditionalDataBase SdkAdditionalDataBase} + * as a base class and add {@link com.intellij.openapi.projectRoots.impl.SdkAdditionalDataBase#assertWritable() SdkAdditionalDataBase#assertWritable()} + * to all setter methods. */ public interface SdkAdditionalData { /** - * Invocation of this method indicates that additional data must become read-only and report errors on attempt to make changes. Any changes - * made after won't be persisted and going to be discarded after the next sdk update. - * To make proper additional data modification, you should: