question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Use fully-qualified class names in snippets

See original GitHub issue

Snippets don’t qualify PendingException, and this often causes people to import the wrong class, or simply be confused about what class to use.

We should just make it fully qualified.

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:8 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
mpkorstanjecommented, Jun 16, 2018

#1398 addressed the PendingException but didn’t address the snippets containing DataTable yet. For example JavaSnippetTest.generatesSnippetWithDataTable currently has

            "public void i_have(DataTable dataTable) {\n" +

Which should be

            "public void i_have(io.cucumber.datatable.DataTable dataTable) {\n" +

so copy paste works instantly.

0reactions
lock[bot]commented, Aug 28, 2019

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Java code snippet to shorten package name from fully ...
How to get short fully qualified class name efficiently. For example if we pass "com.test.Student" we need to get "c.t.Student".
Read more >
Get the fully-qualified name of a class in Java - Tutorialspoint
The fully-qualified class name can be obtained using the getName() method. A program that demonstrates this is given as follows −. Example.
Read more >
Fully qualified names vs using namespaces - MSDN - Microsoft
Hi all, Sometimes I see code that uses methods like. System.Drawing.Drawing2D.LinearGradientBrush. But I am wondering why not use the ...
Read more >
COSTER: A Tool for Finding Fully Qualified Names of API ...
Code snippets available on question answering sites (e.g., Stack Overflow) are a great source of information for learning how to use APIs.
Read more >
java - What are the reasons one would use fully qualified class ...
No - you are quite right. Using fully qualified package names is usually considered poor style, except when it is necessary to avoid ......
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found