Skip to main content
Filter by
Sorted by
Tagged with
2 votes
3 answers
81 views

PDF Signature Appearance is not Visible

I'm implementing visible digital signatures in PDF documents using incremental updates. I'm generating the signature using a PKCS#7 detached signature and adding a widget annotation to represent the ...
vanbroup's user avatar
0 votes
1 answer
54 views

Should Lombok annotations be written before others on a class, method, etc.?

I believe I read somewhere that Lombok annotations should typically be placed before any others on a class or other code element, because they should be applied first. That way, code generated by ...
Nahoj's user avatar
  • 158
1 vote
1 answer
23 views

Valid targets for @MyDslMarker annotations for Kotlin DSLs and the purpose of annotating functions and properties

Preconditions The @DslMarker annotation can only be applied to annotation class by design. However, once our own annotation is defined (e.g., annotation class MyDslMarker), it can be applied to any ...
Tim Korelov's user avatar
0 votes
1 answer
50 views

How do I use ChartJS Annotations plugin to show patterns instead of colors as a box

I understand that I can use type = label to show image in annotation as describe below https://www.chartjs.org/chartjs-plugin-annotation/latest/samples/label/image.html But I'm wondering if it's ...
Lisa Garcia's user avatar
1 vote
1 answer
47 views

Java: How to prevent non-top level annotations on type?

Java: How to prevent non-top level annotations on type? e.g., @Target(value={ElementType.TYPE}) @Retention(value=RetentionPolicy.RUNTIME) public @interface FooList { public Foo[] value(); } @...
eastwater's user avatar
  • 5,518
1 vote
1 answer
45 views

Annotations on ChartJs shows on top of the plots when opaque is one

I'm trying to use ChartJS, this is what I get when using annotations plugin with opacity = 0.5 box1: { type: "box", drawTime: "afterDraw", yMin: 22, yMax: 40, ...
Reydan Gatchalian's user avatar
1 vote
0 answers
16 views

Lombok's @Builder annotation blocks unit test code coverage

I have the following declarations for a JavaBean class: @Data @NoArgsConstructor @Builder @AllArgsConstructor public class ClassNameDTO { // ... } When I run IntelliJ coverage configured for ...
Dmitri Surname's user avatar
0 votes
0 answers
67 views

Create route via Symfony inside a symfony-bundle

I've got a pure Symfony app. I had made own bundle, and want to define routes inside it via annotations/attributes. I don't want to define routes inside main app space - bundle should be installed and ...
M-Zoldak's user avatar
  • 141
1 vote
1 answer
47 views

Add the percentage of different types of observations in a geom_count plot in ggplot2

A MWE would be: df <- tibble(ID = c(1:12), Var1 = c(A, B, C, C, C, A, B, B, C, A, B, C), Var2 = c(B, B, A, A, C, C, A, A, B, C, A, C) ) # draw the following plot showing ...
Lin Jing's user avatar
  • 159
0 votes
0 answers
33 views

How to add row annotation to complex heatmap in r

I am working on plotting a complex heatmap and need to include both column and row annotations in the figure's legend. I would like to cut the row dendrogram and assign colors to the clusters obtained ...
user24687563's user avatar
0 votes
1 answer
18 views

Can't get a service reference from another bundle

I work from onos upgrading. one of the upgrades is that i replace org.apache.felix.scr. org.osgi.service.component.annotations. Here's the some bundles onos-api, onos-core-*, onos-app-tunnel-api, onos-...
emalovecode's user avatar
1 vote
1 answer
49 views

How to annotate dataframe to tmap panels in R?

I am trying to add mean and SD to panel plot created using tmap R package. But each panel contains all the annotations overlapped. Now how can I have single annotations per panel? Here is a minimal ...
UseR10085's user avatar
  • 8,084
1 vote
1 answer
47 views

Dynamic struct field enumeration and attribute parsing in go

I am trying to create custom attribute tags for my go program. These tags will be used with fields, that will pull their values from vault, for e.g. Password string \vault:"password"``. The ...
Sýkora Jakub's user avatar
0 votes
0 answers
100 views

Micronaut Event Loop vs @ExecuteOn(TaskExecutors.BLOCKING)

So the Micronaut docs tell us that Micronaut uses an event loop: Micronaut framework is built on Netty which is designed around an Event loop model and non-blocking I/O. Micronaut executes code ...
Stewart's user avatar
  • 18.2k
1 vote
1 answer
45 views

Why am I able to use ReverseStringComparator.class as the value of the @SortedComparator annotation when it is not a primitive or a String? [duplicate]

@Entity @Table(name = "student") public class Student { @Id @GeneratedValue(strategy = GenerationType.IDENTITY) private Long id; // other fields @ElementCollection @...
Sudhanva BS's user avatar
0 votes
0 answers
29 views

org.hibernate.mapping.JoinedSubclass cannot be cast to org.hibernate.mapping.RootClass, two @Id

I am migrating xml configuration to annotations. I have a class: @Entity @Table(name = "INSTRUMENT_OFFERINGS") @Inheritance(strategy = InheritanceType.JOINED) public class InstrumentOffering ...
Michu93's user avatar
  • 5,679
0 votes
1 answer
50 views

How to annotate custom objects on 4000 images? where each image contains many objects

I want to annotate custom objects in around 4.000 images, where each image contains many objects. I cannot accomplish the work by hand as you can understand. I searched on google and here on ...
nobody's user avatar
  • 455
1 vote
0 answers
27 views

"Cucumber @ParameterType Named Parameter Not Recognized in IntelliJ"

I'm using @ParameterType in Cucumber to define a custom type and assigning a name to it. However, when I reference this name in my @Then step definition, the step in my feature file still shows as ...
Aydın Free's user avatar
0 votes
1 answer
43 views

When should I use @Positive instead of @Min(1) in Spring Boot?

For validating a pagination parameter int size in Spring Boot, I want to ensure the value is greater than 0. I noticed that both @Positive and @Min(1) can be used for this. Which one is better to use, ...
cpu-fan's user avatar
1 vote
1 answer
27 views

Is there anyway to make Java Custom Annotation Processor with RetentionPolicy SOURCE to work?

I have created a Java Custom Annotation Processor with RetentionPolicy as SOURCE for generating personalized code for me just like Lombok's Getter & Setter. Unfortunately it didn't worked because ...
Mihir Bhagat's user avatar
1 vote
1 answer
52 views

Log4j fail to discover Plugin when using SBT

I'm working on creating a custom Log4j plugin for my project using SBT 1.9.9 scalaVersion := "2.13.9" When I specify packages="com.testserver" in the Log4j XML configuration, ...
David Gueta's user avatar
1 vote
2 answers
84 views

How to show annotations by click on the column in swiftUI Charts

When I try to display the annotation by using onTapGesture, it appears in the middle of the chart. When I click on the column, it should show my annotation on top of the column, as you can see in the ...
Yaroslav Nechyporuk's user avatar
0 votes
1 answer
29 views

Tomcat ignore metadata-complete="true" with servlet 6.1

My application does not use any servlet annotations. That I want skip the scanning for annotations. But it look like that Tomcat 11.0 ignore the metadata-complete="true"attribute. Do I have ...
Horcrux7's user avatar
  • 24.4k
0 votes
0 answers
12 views

Annotating HiC interactions using HOMER tool

I am working with HiC data of cotton. I have successfully generated significant Interactions using HOMER tool and now am trying to annotate the interations. The interactions file generated by HOMER is ...
Anushka Chaturvedi's user avatar
-3 votes
2 answers
69 views

Java Spring expected at least 1 bean which qualifies as autowire candidate. Dependency annotations

Spring boot application throws No Qualifying bean of type available: expected at least 1 bean which qualifies as autowire candidate. error at runtime. Please find my code below. SpringBoot version : 2....
Karthikeyan's user avatar
  • 1,991
1 vote
0 answers
71 views

Is possible to define a typedef for complex and composite datatypes in PHP or Laravel?

Is there a way to define a special type just a placeholder for complex return data types? Builder|Payment|Model Can I define a typedef for this? PaymentBuilder => Builder|Payment|Model And return ...
Kareem Mohamed's user avatar
0 votes
0 answers
45 views

How to Delete an Annotation Using Wagtail Review and Annotator.js on Button Click?

I am working with both Wagtail Review and Annotator.js in my project. I want to add a delete button (an "X" inside a red circle) to annotations, and when clicked, it should delete the ...
ladhari's user avatar
  • 525
0 votes
0 answers
32 views

making one annotation out of severals

I'm using JPA and in almost every entity class, I have the same 3 annotations for my id: @Entity public class Club { private static final String SEQ = "Club_Seq"; @Id @...
EasterBunnyBugSmasher's user avatar
0 votes
1 answer
36 views

Groovy MapConstructor does not instanciate sub list with correct type

i'm having an issue using the @MapConstructor given by groovy. Given this kind of payload body // @no-cookie-jar // @no-log POST {{host}}/api/collection?logon={{logon}}&key={{key}} Content-Type: ...
Patrick Ferreira's user avatar
0 votes
0 answers
24 views

AnnotationProcessor using JavaAssist fails to find class, class is not generated because annotations failed to process

I'm trying to create a custom annotation and annotation processor to modify generated classes btyecode using JavaAssist and using gradle to compile the main project and the two annotation modules. ...
Matthew Kerss's user avatar
0 votes
1 answer
44 views

Changing value passed into custom @Qualifier

Is there a way to change the value passed to a custom @Qualifier, and pass it to the delegating @Qualifier? I understand that we can create custom qualifiers by @Qualifier @Target({ ElementType.FIELD, ...
Ryan Wong's user avatar
0 votes
1 answer
70 views

Not creating the .g.dart class in Flutter(Dart)

I have used the json_serializable library in flutter and created a class and created the Annotation of the library i.e. json_serializable in the class as below example: import 'package:json_annotation/...
Mohamad Hasan Salmaaniyaan's user avatar
1 vote
1 answer
42 views

What are the issues when not using @Column(columnDefinition = "TEXT")?

In my Board entity, there is a field. private String content; And, if i run the following query on my database(mysql), ALTER TABLE board MODIFY content TEXT; Will there be any issues du to the ...
katie's user avatar
  • 13
0 votes
0 answers
27 views

Composition @Repeatable annotations in custom annotation

For integration tests on Spring Boot, I need to combine 2 @Sql annotations into a custom one and transfer only the path to the scripts folder to one of them. You can pass both paths, but the second ...
Guinnesss's user avatar
0 votes
1 answer
74 views

Where is the implementation of an annotation's effects/behavior?

As per my understanding, an annotation is metadata. which will do its job either at compile time or runtime. Consider the annotation @Override, which ensure that a method is defined in super-class/...
RBS's user avatar
  • 243
1 vote
1 answer
57 views

How can I annotate my Django queryset with a count of related objects

I have 3 django models; Machine, Component, and Part. I am trying to annotate a machine queryset to include the count of unique parts used in that machine. In the example below, ps1 is used to make f1....
Chris Parker's user avatar
1 vote
0 answers
30 views

Not able to use array of elements in annotation for this case with JCommander library

I am trying to use JCommander library with groovy, I am using this test script based on code on the library documentation, here one of the important part @Grapes( @Grab(group='org.jcommander', ...
res1's user avatar
  • 3,630
0 votes
1 answer
31 views

Automatically introduce sample code in gwt

I have implemented some components using Gwt, and I want to display these components and their Java code on the front-end page, providing an example of component usage. What I want to showcase is Java ...
FanTech's user avatar
0 votes
0 answers
13 views

When i started my application, spring does not see my been of type IngredientRepository

Description: Parameter 0 of constructor in tacos.web.DesignTacoController required a bean of type 'tacos.data.IngredientRepository' that could not be found. Below controller; package tacos.web; ...
Aruzhan BBcrem's user avatar
0 votes
0 answers
111 views

Why is -proc:none processing the custom annotations?

I am configuring a CustomAnnotationProcessor in Java 17 in compile time. I found that a way to achieve this is adding an <execution> block to the pom.xml. The solution shows the usage of <...
Cristian Jacob Jimenez's user avatar
0 votes
0 answers
60 views

Annotation not processing in Java

I'm making a library/framework that uses annotation processing for configuration. I've registered my annotation processor with @AutoService(Processor.class) and the javax.annotation.processing....
MG95's user avatar
  • 46
0 votes
0 answers
19 views

How to create custom @PostAuthorize Annotations that accept returnObject as annotation type?

How does one create custom @PostAuthorized annotations in Java / Kotlin on Spring? @Service("authorizationService") class AuthorizationLogic { fun decide(response: ResponseEntity<...
Sachin's user avatar
  • 463
0 votes
0 answers
56 views

How to add Link Annotation to tag tree with PDFKit?

I'm using PDFKit and Node.js/Javascript to dynamically generate a PDF file. The PDF should be fully accessible, but there are errors with the accessibility of links and annotations. The link is ...
brightnightflower's user avatar
1 vote
1 answer
74 views

Add annotation on all methods of the classes present in a given directory

I have a usecase that I have created one annotation for our clients to onboard to our platform. These annotations when present over method intercept the method call and avoid making the production ...
ayush5148's user avatar
0 votes
2 answers
125 views

How to Provide Runtime Parameters to a Custom Annotation's Interceptor in a Jakarta EE Project?

I'm working on a Jakarta EE project where I have a custom annotation and an associated interceptor. The annotation is used to execute some logic, and it works as expected as a standalone. However, I ...
maxc123's user avatar
0 votes
1 answer
73 views

How do I configure Symfony Validator to ignore @OA annotations?

I'm using both OpenAPI OA annotations with Swagger and Symfony Validator annotations, but there seems to be a conflict between the two. Example snippet: use Symfony\Component\Validator\Constraints as ...
Olle Härstedt's user avatar
0 votes
0 answers
28 views

PDAnnotationLink with image

Code snippet to add PDAnnotationLink final PDAnnotationLink txtLink = new PDAnnotationLink(); PDBorderStyleDictionary pdBorderStyle = new PDBorderStyleDictionary(); pdBorderStyle.setStyle(...
Shahid Ghafoor's user avatar
0 votes
0 answers
20 views

SwaggerV3 - DownloadFile Endpoint

I try to make an endpoint with SwaggerV3 that's download a File in java Here the endpoint definition in muy interface: @Path("/file") @Tag(name = "File") @Produces({"...
Martinez Thomas's user avatar
0 votes
0 answers
47 views

Java Annotation Processing doesn't generate new class

I'm trying to do an example annotation processing. It doesn't generate any new class after compilation, I've seen many videos about it and cannot fix the problem. I don't know where it is. I'm using ...
reiizl's user avatar
  • 3
0 votes
1 answer
106 views

flutter use build_runner output Configuring *** in target *** but this is not a known Builder

When I try to generate a database management file using annotations and build_runner in Flutter, the output is look like: ➜ tao_bao flutter pub run build_runner build ...
vincent weng unknownparticles's user avatar

1
2 3 4 5
257