Skip to content

Tips & Tricks

David Gerber edited this page Oct 12, 2025 · 2 revisions

How to add features to the development profile only

  • add the Environment bean
  • use the following check: if (environment.acceptsProfiles(Profiles.of("dev")))

How to deprecate an element

When using a Retroshare feature that is deprecated (for example an old item that has been replaced by a newer one), use the @RsDeprecated annotation. It takes one argument which is the Retroshare version since when the feature is deprecated, for example:

@RsDeprecated(since = "0.6.5")
public class ChatRoomInviteOldItem extends Item

Clone this wiki locally