Skip to main content
Filter by
Sorted by
Tagged with
1 vote
1 answer
43 views

I am reading into java compile-time annotation-processing. I can easily process annotations manually on the commandline, using javac -d . MyAnnotation.java javac -d . MyAnnotationProcessor.java javac -...
Viktor Engelmann's user avatar
0 votes
0 answers
55 views

Using Markdown with MkDocs Material, I'm trying to implement a glossary with automatically appended definitions and custom styling. I've successfully used the snippets extension to auto-append a ...
ABCdC's user avatar
  • 1
0 votes
1 answer
134 views

I got an error from the following code. public @Nullable String getWhatever() { return whatever; } public void setWhatever(@Nullable final String whatever) { this.whatever ...
Jin Kwon's user avatar
  • 22.4k
2 votes
0 answers
110 views

I want to create a REST API in which I use Jakarta Validation constraint annotations such as @NotNull, @Valid, @Max... But I want to define the methods for the controller in an interface as follows: ...
FelixFeuerdorn's user avatar
1 vote
1 answer
37 views

I’m unmarshalling an incoming XML into POJOs using JAXB (javax.xml.bind) with @XmlAccessorType(XmlAccessType.FIELD). Most fields under bind correctly for me (e.g. asFer, square, SOY, ab), but the ...
eddasahin61's user avatar
2 votes
2 answers
111 views

I'm looking to create a plot in R that dynamically retrieves and displays the results of a statistical test as an annotated text directly on the plot. I want to achieve precise formatting for the ...
thanmour's user avatar
-3 votes
1 answer
119 views

I have a custom annotation @myAnno that I want repeatable. This @myAnno annotation is marked with another annotation called @Constraint. When I process an object I look for all annotations that are ...
A User's user avatar
  • 43
0 votes
0 answers
121 views

I am currently looking for an easy way of plotting gene annotation with the GeneRegionTrack of the Bioconductor Gviz R package. The documentation claims to be able to plot gene annotation directly ...
Sofia's user avatar
  • 295
1 vote
1 answer
51 views

Spring beginner here. I am making two custom annotations @Satisfy and @Verify, meant to be used to track requirements in code. @Satisfy denotes where the requirement is implemented @Verify denotes ...
Kurt Andersen's user avatar
0 votes
1 answer
126 views

I'm building a Spring Boot 3.4.6 application using MongoDB and encountering an issue where @NonNull and @Email annotations are not triggering validation errors/exceptions even though I am using @Valid ...
sathwikhbhat's user avatar
0 votes
1 answer
43 views

I am trying to develop an AI Agent using LangChain4J Quarkus plugin, in Kotlin. I have created this class: package prova.langchainkotlin.test import io.quarkiverse.langchain4j.RegisterAiService ...
Valerio Storch's user avatar
0 votes
1 answer
76 views

I had written a couple annotation processors in the past, mainly for processing classes annotated with certain annotations and creating an object to easily manipulate those classes or perform certain ...
Neglected Sanity's user avatar
0 votes
0 answers
103 views

I am writing a Java library in which I'm attempting to auto-generate some boilerplate code using annotations. The generated code is a large hierarchy of sealed interfaces with lots of cyclic ...
Jamie Mullowney's user avatar
0 votes
1 answer
49 views

I'm trying to create classes that can be saved to a JSON file. The idea is to convert my object to a dataclass that stores only the important attributes. I'll then use something from json or ...
Quantasm's user avatar
0 votes
0 answers
25 views

I wrote myself a small library that scans one or more packages for classes that are annotated using a specific annotation and then does some fancy stuff on these classes. Now I just wanted to use that ...
mmo's user avatar
  • 4,396
4 votes
2 answers
277 views

I am trying to use Room for Kotlin Multiplatform (version 2.7.1) with ksp version 2.1.21-2.0.1. How can I use the experimental type kotlin.time.Instant in my models? The annotation processor ...
Gamer2015's user avatar
  • 341
-1 votes
1 answer
47 views

In my Visual Studio Code 1.100.0, I am having issues with parenthesis annotations and the scrollbar annotations with dart. Starting point of my widget: Ending point of my widget: This is very ...
DevQt's user avatar
  • 1,918
3 votes
1 answer
49 views

I am unable to retrieve the annotation at the left of the square brackets of an array: public static @MyNullable1 String @MyNullable2[] array = null; @Test public void test() throws Exception { ...
FredSuvn's user avatar
  • 2,181
1 vote
1 answer
70 views

I have these three macros all defined in the same file (and with the same exact definition): class client(val port: Int = 9000) extends StaticAnnotation { def macroTransform(annottees: Any*): Any = ...
Dima's user avatar
  • 40.6k
0 votes
0 answers
49 views

Is there a way in Vsphere Version 8 to get the Annotation from a vm with using the rest API? "https:///api/vcenter/vm/vm-64" doesn't work - no annotation Is Powercli the only way for this?
Mickey45's user avatar
0 votes
1 answer
114 views

I am working on a somewhat like spring DI framework, and I faced an issue scanning all classes annotated with a certain annotation. Here are the annotations: @Retention(RetentionPolicy.RUNTIME) @...
Standing_Ash's user avatar
0 votes
0 answers
71 views

I have been trying to find a simple definition of an annotation is Spring Boot, specifically: a) What it does b) When / how you would use it While I am using annotations in my code such as @Repository ...
Walker Farrow's user avatar
2 votes
1 answer
72 views

I have the following class which represents an entity in a MongoDB database: public class Profile { [BsonId] [BsonRepresentation(BsonType.ObjectId)] public string Id { get; set; } = null!; ...
chris's user avatar
  • 2,882
1 vote
1 answer
49 views

This question is a follow up to the question here AspectJ @around a static initializer I accepted that answer because it did apply the aspect to the code, but i hadn't actually run it yet to see there ...
MeBigFatGuy's user avatar
  • 28.7k
0 votes
1 answer
66 views

I'm attempting to use a point cut of @Around("staticinitialization(*)") but when applying i get this error: [iajc] [error 4]: error at /home/dave/dev/coyote/projects/aspects/debug_src/com/...
MeBigFatGuy's user avatar
  • 28.7k
0 votes
0 answers
23 views

For those familiar with Potato, the text annotation tool, I would like to know if is there a possibility when you are doing span labeling, to select multiple labels for the same span. I checked the ...
Diana Duarte Salinas's user avatar
0 votes
1 answer
57 views

Currently I have annotation properties in my application.properties, such as: my.project.MyClass/myFunction/Retry/maxRetries=3 my.project.MyClass/myFunction/Retry/delay=400 Is it possible to put ...
MiketheCalamity's user avatar
0 votes
0 answers
85 views

I am running CVAT on a VM and attempting to export annotations to (lakefs, hosted by my organization) S3 cloud storage. However, I encounter an AccessDenied error, despite being able to upload to the ...
Raighley's user avatar
1 vote
1 answer
99 views

Following documents and examples I try to implement @Counted and @Timed annotation based observability, basing on spring boot actuator, micrometer. There are no build or run errors. a method in the ...
Gil Shapir's user avatar
3 votes
0 answers
89 views

I am working with a Java agent that is adding an annotation dynamically to a class file. When this class file is a Kotlin class, and if it is investigated by Kotlin reflection, the annotation does not ...
Rafael Winterhalter's user avatar
0 votes
0 answers
23 views

I'm having a problem with VerticalLineAnnotation.Visibility = Visibility.Hidden; not taking effect in my development, checking the Scichart forums I know the answer, Visibility is used internally but ...
李晓航's user avatar
0 votes
1 answer
620 views

I encountered the following error while working with FastAPI and Pydantic and SlowApi: pydantic.errors.PydanticUserError: `TypeAdapter[typing.Annotated[ForwardRef('ResponseModel'), FieldInfo(...
Mohanad Gadallah's user avatar
2 votes
1 answer
208 views

I want to annotate my DDL commands with metadata for mutiple data stores' SQL like PostgreSQL, SnowflakeSQL... ex: CREATE TABLE dummy (col_name type ... `*metadata_annotation*`, ...); And I also want ...
Gautham S's user avatar
0 votes
1 answer
62 views

So I have an annotation that looks like this: class FakeAnnotation(val strings: String*) extends StaticAnnotation val someVar = "Test" @FakeAnnotation(someVar) class TestClass I can't see ...
Tanin's user avatar
  • 1,973
0 votes
3 answers
99 views

I have an abstract class A with a function funcA, implemented. I want to enforce that the classes that extend class A override funcA to add an annotation @SampleAnnotation. To achieve this, I tried ...
BBloggsbott's user avatar
1 vote
0 answers
105 views

I'm trying to get annotations to work on a PDF Embed API implementation. The documentation says that in FULL_WINDOW mode it should work on Chrome and Safari on Tablets. However it does not seem to ...
WindyJMusic's user avatar
1 vote
0 answers
24 views

I have an @ObjectTypeConverter defined for one of my models like so: @Column(name = "ACTIVE", nullable = false) @ObjectTypeConverter(name = "shortToBooleanConverter", dataType =...
Alisa's user avatar
  • 31
0 votes
0 answers
32 views

I am trying to read the annotations of a value that I pass to a function. I have an annotation defined as: @Retention(AnnotationRetention.SOURCE) @Target(AnnotationTarget.EXPRESSION) annotation class ...
exbuddha's user avatar
  • 633
-1 votes
1 answer
75 views

today i created a hello world app. It's not a simple hello world app. It uses classes, custom exceptions, threads, generics, custom annotation and more. The problem here is that the AnnotationApplyer ...
iasonas's user avatar
  • 11
1 vote
1 answer
45 views

I have a list of UUIDS of users where I need to decrease a number of gold by a given amount. MyBatis function: @Update( """ UPDATE users SET gold = gold - #{amount} <...
Vetalll's user avatar
  • 3,743
1 vote
0 answers
89 views

We are using YOLO for object detection in satellite images to detect greenhouses. I'm annotating images through Roboflow. I've downloaded satellite images with different zoom levels. (zoom level means ...
Akila premarathna's user avatar
0 votes
0 answers
25 views

I have an abstract class that consumers of my library are expected to implement: public abstract class StatusIndicator { protected StatusIndicator(Class<? extends StatusIndicator> thisClass) { ...
bobbyrne01's user avatar
  • 6,833
0 votes
1 answer
37 views

I'm using the python owlready2. In working with object properties, I was successful to get most of the standard annotation via dot attributes, like label, isDefinedBy, deprecated, iri, is_a, domain ...
Xin Feng's user avatar
1 vote
0 answers
100 views

I'm on java 17, and I need to create an annotation processor which (like lombok) will modify the existing methods. The goal is annotation named @LogThis The will replace the method body with a log and ...
Aviv Assayag's user avatar
0 votes
0 answers
14 views

i'am trying to use custom annotation, which validation logic with reflection should be invoked automaticaly import jakarta.validation.Constraint; import jakarta.validation.Payload; import java.lang....
Roma Kap's user avatar
  • 646
-1 votes
1 answer
120 views

The codebase I'm working with already has a way of defining retry limits through annotations, e.g. @Retry( retryInterval = 60 ) fun doSomething(args: ...) However the retry parameters need to be ...
Kevin2566's user avatar
  • 451
0 votes
0 answers
29 views

can you please help me understand the issue with AnnotationView in MapKit, As shown in the picture, I wan to set up a custom annotation with left and right calloutView, one in white color and the ...
Abdellah Ichiba's user avatar
0 votes
1 answer
38 views

I just discovered that the implementation of listener with IAnnotationTransformer annotation is executed as soon as the tests are launched even before the very first test is executed. Background: I ...
S P's user avatar
  • 69
5 votes
1 answer
6k views

I entered the command: $ mypy mypycode.py Then I run the following code in mypycode.py: from mypyc.build import mypycify from setuptools import setup from timeit import timeit import math setup( ...
Mr. W's user avatar
  • 275
1 vote
0 answers
64 views

When i use cron like this: @Scheduled(cron = "0 0/5 16-19 * * *") spring does not subscirbe to Mono returned from method autimatically, and i need to do that manually. When i use @Scheduled ...
Denys Garbuz's user avatar

1
2 3 4 5
256